Execution failed for task ':app:processDebugResources'
这可能是因为我的 gradle 版本低的问题导致的,下面是我搜到的解决办法
Solution 1
for
./gradlew installRelease
Try code on your module android/app/build.gradle:
android {
// ...
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
// ...
}
It means Android studio DO NOT check PNG strictly.
Solution 2
for debug
I just removed my cash data from .../User/.gradle/cashes folder and after add android.enableAapt2=false this in android/gradle.properties file in my project and its work for me.
https://github.com/facebook/react-native/issues/10367
android.enableAapt2 This property has no effect, AAPT2 is now always used.
hi if gradlew clean not working maybe the problem is aapt.exe can't write in R.txt check if aapt.exe in list blocked in anti virus avast and make it in allowed list https://stackoverflow.com/questions/61788014/android-studio-aapt-error-failed-writing-to-r-txt-the-data-is-invalid