2

I am creating simple android application in android of hello world printing and getting an -- error Description

Resource    Path    Location    Type Error generating final archive: java.lang.ArrayIndexOutOfBoundsException: 13   Demo_ABC        Unknown Android Packaging Problem 

Code is:

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class MainActivity extends Activity 
{

@Override
protected void onCreate(Bundle savedInstanceState) 
{
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
}


}
Aravin
  • 4,126
  • 1
  • 23
  • 39
Mit
  • 21
  • 1

1 Answers1

2

Someone else had the same problem with eclipse. The solution was to check the box "Create Test Project":

Your project is getting associated with some Test Project which you are not mapping with your newly created project. When you are creating any new project check carefully whether you are including the "Create Test Project" option or not.

Another guess: As the error seems to be package-related and your code does not include that, insert the correct package yourpackage.tld; in the code. (you said "Code is:").

Maybe that is missing Android expects it by default and gives weird errors because that was totally unforseen by the Google Android developers.

serv-inc
  • 35,772
  • 9
  • 166
  • 188