"Gradle: Execution failed for task ':Results:processDebugResources'
Running /home/mydata/Desktop/android-studio/sdk/build-tools/android-4.2.2/aapt failed.
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
Try the following:
-Migrate project to androidx
-Raise the minSDK and targetSDK
-update all dependencies to the newest version
This issue usually comes from an issue with a dependency in your build gradle. Either one is not compatible or up to date with the rest of the dependencies or the version you are using is bugged.
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.