开发者

Beginner Asking: How do I get my android app to compile in Eclipse?

I'm going through a tutorial here: http://mobile.tutsplus.com/tutorials/android/android-sdk-development/.

I have finished the tutorial and I've set up my debug configuration. When I actually try to run the debugger I see a popup that says: "Your project contains errors. Please fix them before running your application."

In the "Problems" tab of eclipse, It says Errors 1 Item: Unparsed aapt error(s)! Check the Console for output. The location of the error is listed as unknown. When i switch to console, this is what's in there:

[2010-11-13 19:34:36 - SDK Manager] Warning: Error parsing 'C:\Users\Owner\Desktop\android-sdk_r07-windows\android-sdk-windows\platforms\android-2\sdk.properties': java.io.FileNotFoundException: C:\Users\Owner\Desktop\android-sdk_r07-windows\android-sdk-windows\platforms\android-2\sdk.properties (The system cannot find the file specified).
[2010-11-13 19:34:36 - SDK Manager] Warning: Error parsing 'C:\Users\Owner\Desktop\android-sdk_r07-windows\android-sdk-windows\platforms\android-5\sdk.properties': java.io.FileNotFoundException: C:\Users\Owner\Desktop\android-sdk_r07-windows\android-sdk-windows\platforms\android-5\sdk.properties (The system cannot find the file specified).
[2010-11-13 19:34:36 - SDK Manager] Warning: Error parsing 'C:\Users\Owner\Desktop\android-sdk_r07-windows\android-sdk-windows\platforms\android-6\sdk.properties': java.io.FileNotFoundException: C:\Users\Owner\Deskto开发者_Python百科p\android-sdk_r07-windows\android-sdk-windows\platforms\android-6\sdk.properties (The system cannot find the file specified).
[2010-11-13 19:35:25 - SDK Manager] Created AVD 'FirstAndroid' based on Android 2.2,
[2010-11-13 19:35:25 - SDK Manager] with the following hardware config:
[2010-11-13 19:35:25 - SDK Manager] hw.lcd.density=160

I'm not sure what to do about this. Where would i get those files/What's the next step?


I never had exactly this problem, and I can't say what is causing it (I will not start with suggestions of type "check that the SDK is installed properly") but I have received bugs that outputs Unparsed aapt error(s) on several occasions, mainly (but not only) related to the SVN plugin - committing one project when there are errors in another project in the workspace.

To fix this, I am deleting the project from the workspace (but not from the filesystem), and then importing it again, and it worked 100% of the time.

I hope it works for you too, and I also hope that someone may explain exactly what can cause these.


i think your SDK is not properly plugged in. try reinstalling it

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜