简体   繁体   中英

Error in appcompat_v7 and every eclipse project

I just started android programming and downloaded the latest versions of ADT and android SDK. However, any new project I try to create is having 4 errors.

One of the errors is " Error executing aapt. Please check aapt is present at /home/nikhil/Android/adt-bundle-linux-x86_64-20140702/sdk/build-tools/android-4.4W/aapt " . The type of the error is Android Packaging Problem and the problem occurs in appcompat_v7. The aapt file is exactly at the specified place but somehow eclipse cant execute it.

The other 3 errors are "R cannot be resolved to a variable" and it occurs in MainActivity.java.

I am running Arch Linux 64 bit and using Eclipse IDE for Android Developers 23.0.2.1259578.

I am trying to create My First App and is puzzled to see errors before i wrote a single line of code!

This happends occasionaly and the usual way I fix this is to go into Projects -> Properties -> Android -> then choose appcompat from the list, apply, then go. The R cannot be resolved to a variable is usually because there is an error in one of your XML files which you have to resolve.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM