You will find out troubleshooting for Android application development here.
Java 7 SDK, and Android SDK and AVD Manager (installer_r13-windows.exe).
Software being installed: Android Development Tools
12.0.0.v201106281929-138431 (com.android.ide.eclipse.adt.feature.group
12.0.0.v201106281929-138431)
Missing requirement: Android Development Tools 12.0.0.v201106281929-138431
(com.android.ide.eclipse.adt.feature.group 12.0.0.v201106281929-138431)
requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found .
- Start Eclipse, then select Help > Install New Software....
- Click Add, in the top-right corner.
- In the Add Repository dialog that appears, enter "The Eclipse Project Updates" for the Name and the following URL for the Location:
http://download.eclipse.org/eclipse/updates/3.7 - Click OK
- Click "Select All" button,then Click "Next" button to finish the eclipse update process.
2. Wrapper was not properly loaded first
Q: After I setup the Android SDK and created a new andoird project "Hello World", then to Run it, it threw an error message as below.
[2011-02-15 11:00:33 - Dex Loader] Unable to execute dex: wrapper was not properly loaded first
[2011-02-15 11:00:33 - HellWorld] Conversion to Dalvik format failed: Unable to execute dex: wrapper was not properly loaded first.
A: Locate the file "eclipse.ini" under the root directory of the Eclipse installation, for example "
C:/Program Files (x86)/eclipse
". Open it with Notepad. Change the last 2 line to be
-Xmx512m
Save and close it, then restart the Eclipse IDE, click menu "Project -> Clean". It's OK now.
3. Invalid command-line parameter: Files.
Q: Create a HelloWorld android project, then run it in Emulator. It throws the following errror messages in the console.
[2011-07-13 16:22:48 - Emulator] invalid command-line parameter: Files.
[2011-07-13 16:22:48 - Emulator] Hint: use '@foo' to launch a virtual device named 'foo'.
[2011-07-13 16:22:48 - Emulator] please use -help for more information
A: The reason is that you installed the android SDK on Windows 7, and the installation path is like "
C:/Program Files (x86)/Android/android-sdk
To walk this around, in Eclipse, click menu "Window -> Preferences", select "Android" on the left frame, change the SDK location to be "
C:/Program Files (x86)/Android/android-sdk
". then click "Apply" and "OK" button.
The key point here is that you should use 8.3 format names for the path. To view the 8.3 formate name for SDK location, open cmd.exe, input the following command:
dir /x c:
Alternatively, you can choose to install the android SDK under a location without White Space. That's also ok.
http://schemas.android.com/apk/res/android"
package="eric.android.example.helloandroid"
android:versionCode="1"
android:versionName="1.0">
An internal error occurred during: "Install download0". Comparison method violates its general contract!
A: The error caused by Eclipse SDK update. To avoid this problem, Download the Eclipse SDK 3.7.1 from http://mirror.bit.edu.cn/eclipse/eclipse/downloads/drops/R-3.7.1-201109091335/eclipse-SDK-3.7.1-win32-x86_64.zip directly. Then retry the step above to install new software.
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/13651903/viewspace-1055549/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/13651903/viewspace-1055549/