react-native-svg: Execution failed for task ':app:processDebugResources'
Created fresh 0.52 RN project and installed plugin at last major release 6.0.0 and received the following error upon react-native run-android after following readme instructions:
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources
:app:bundleDebugJsAndAssets SKIPPED
:app:processDebugManifest
:app:processDebugResources
/Users/jskidd3/Desktop/Apps/TestSVG/android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
/Users/jskidd3/Desktop/Apps/TestSVG/android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
/Users/jskidd3/Desktop/Apps/TestSVG/android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
/Users/jskidd3/Desktop/Apps/TestSVG/android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
:app:processDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17
@msand Thanks again, changing the versions up from 23 to 25 fixed it
Try this changeset: android/app/build.gradle
android/build.gradle
android/gradle/wrapper/gradle-wrapper.properties
@msand I’ve tried your solution with the changeset, after performing
cd android && ./gradlew cleanand then going back to tryreact-native run-androidI get the same error, but a little shorter:Do you have more advice or insights?
hi cd into android and run " gradlew clean ". and run npx react-native run-android, worked for me it should for you also.
react-native run-android --no-jetifier
worked for me.
what do you mean clean ? i build success ,second get the same error
Changing the version may resolve the problem. But it cannot run on API 23 of Android i.e Marshmallow right. When you launch the created android app. It only support Nougat and after versions.
Kindly guide me to resolve the same issue I am facing now