简体   繁体   中英

In Android Studio R.java file is empty

After opening my project in android studio its showing the following error

    "Gradle: Execution failed for task ':Results:processDebugResources'
     > Running /home/gopi/Desktop/android-studio/sdk/build-tools/android-4.2.2/aapt failed. See output"

And also R.java file is empty, I don't know wheather the above error is the reason or not. My R.java is located in src/main/gen/com/example/results

please help me.....

If R is not genereated correctly make sure none of ur java or xml files got error in them. Try Clean ur project.

Really annoying error, I've just had a very similar thing and wanted to re-iterate the importance of checking your XML files for anything odd! In the end mine was an activity that wasn't even in use anymore so going through and 'pruning' your project of obsolete files can help

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