首页 > 应用开发 > IT综合 > Android FAQ
You will find out troubleshooting for Android application development here.
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
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.
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博客 ” ,链接:https://blog.itpub.net/13651903/viewspace-1055549/ ,如需转载,请注明出处,否则将追究法律责任。