Eclipse Kepler crashes when creating new Android Application Project

无人久伴 提交于 2019-12-01 18:21:19

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!