Error when trying to run Google Android application in Eclipse

I was trying to build a new Android application using the Eclipse plugin. Everything went find according to the direction except when I tried to run the application. Eclipse said I need to fix errors before running. I took a look at the problems tab and it displayed this error: “Error executing aapt. Please check aapt is present at %”.

After poking around a bit, I found that I needed to specify the location of the SDK that you can download from Google. I was able to fix this by specifying the Android SDK location in the Android configuration section in Eclipse.

Window > Preferences > Android. In “SDK Location” enter the location of the extracted sdk: “C:\devel\sdk\android_sdk_windows_m3-rc22a”.

This also fixes the problem where eclipse cant find the android.jar library.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.