Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thirdreplicator/b5c133f7b3253c816a86e9157dbbc030 to your computer and use it in GitHub Desktop.
Save thirdreplicator/b5c133f7b3253c816a86e9157dbbc030 to your computer and use it in GitHub Desktop.
If you get this error: ~/$REACT_NATIVE_PROJECT_ROOT_DIR/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', then make the following changes to ./android/app/build.gradle
# ./android/app/build.gradle
# Extra missing instructions
# 1. Change compileSdkVersion to 25
# 2. and buildToolsVersion to 25.0.3.
# 3. and targetSdkVersion to 25
android {
compileSdkVersion 25
buildToolsVersion 25.0.3
...
targetSdkVersion 25
...
In the dependencies section, change the appcompat to the same version:
dependencies {
...
compile "com.android.support:appcompat-v7:25.0.3"
...
}
@thirdreplicator
Copy link
Author

After that it should compile.

react-native run-android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment