react-native-splash-screen icon indicating copy to clipboard operation
react-native-splash-screen copied to clipboard

Execution failed for task ':app:processDebugResources'

Open youngjuning opened this issue 7 years ago • 3 comments

这可能是因为我的 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.

youngjuning avatar Jun 25 '18 07:06 youngjuning

https://github.com/facebook/react-native/issues/10367

youngjuning avatar Jun 25 '18 07:06 youngjuning

android.enableAapt2 This property has no effect, AAPT2 is now always used.

ramisalem avatar Nov 17 '20 06:11 ramisalem

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

slimanej4c avatar Jan 11 '22 14:01 slimanej4c