Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Kepler crashes when creating new Android Application Project

As the title reads, it crashes every time I make a new android app project. It seems to run fine when I make a new Java project, however. The error code i get is: Java was started but returned with exit code: -805306369.

That's all I could post, i can't seem to copy the error message (it's a pop-up, doesn't appear on console)

Just as it's about to load the project, eclipse goes Not Responding for a long time, so I'm forced to close it and I get that error message.

Any help would be appreciated, thank you.

like image 212
Andrew Kor Avatar asked Nov 12 '22 19:11

Andrew Kor


1 Answers

If you're using Eclipse to build Android, do the following in order:

  1. Install the JDK from Oracle. You can get the JDK here.

  2. Install Eclipse (e.g. Eclipse Standard version). As of November 2013, Juno (Eclipse v4.2.2) is the most stable release of Eclipse. Refrain from using Kepler release for now. You can get old, stable release of Eclipse here. Or, new version here if it is stable. Important: When you install Eclipse, do not overwrite an existing Eclipse installed directory but instead create a new directory and install Eclipse there. This would prevent getting libraries mixed up between different versions of Eclipse.

  3. Install the Android SDK. You can get the SDK here. For beginners, choose the installer_r22.3-windows.exe package.

  4. Install the Android Development Tools (ADT). You can get the ADT here.

  5. Start Eclipse.

  6. From Eclipse's menu, select Window | Preferences. Then, select Java | Installed JREs option. Check to see if Eclipse has listed correctly the JDK installed directory created from step 1 above. If not, click Add button and browse to your JDK installed directory. On Windows, this directory is normally found under C:\Program Files\Java\jdk1.6.0_45 (e.g. Java 1.6 release 45).

  7. In Eclipse's Preferences screen, select Android option and check that the directory of the Android SDK Location is correct. It should be correct if you have successfully completed step 3 above.

  8. To create a new Android project, from Eclipse's menu select File | New | Android Application Project. Fill in the required information in the New Android Application screen and click Finish when done.

OPTIONAL: Under Eclipse's Window menu option, there are two Android submenu options: Android SDK Manager and Android Virtual Device Manager.

a. The Android SDK Manager option allows you to install/remove versions and/or components used for Android development.

b. The Android Virtual Device Manager option allows you to create virtual Android devices for development and testing purposes. For example, an Android virtual device with a Target of Android 2.1 - API Level 7 will allow you to test your Android application that will later run in production on devices - phones, tablets, notes - that run Android firmware version 2.1.

like image 102
ChuongPham Avatar answered Nov 15 '22 09:11

ChuongPham