Skip to content
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.

AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'. #100

Closed
fortezhuo opened this issue Jul 5, 2018 · 4 comments

Comments

@fortezhuo
Copy link

Hi,
While upgrade to RN 0.56. I have found this error.. But on RN 0.55.4, this package working perfectly

:react-native-cookies:processReleaseManifest UP-TO-DATE
:react-native-cookies:processReleaseResources
/Users/XXXX/Workspace/app-react-native/node_modules/react-native-cookies/android/build/intermediates/res/merged/release/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/XXXX/Workspace/app-react-native/node_modules/react-native-cookies/android/build/intermediates/res/merged/release/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/XXXX/Workspace/app-react-native/node_modules/react-native-cookies/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15:21-54: AAPT: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

/Users/XXXX/Workspace/app-react-native/node_modules/react-native-cookies/android/build/intermediates/res/merged/release/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/XXXX/Workspace/app-react-native/node_modules/react-native-cookies/android/build/intermediates/res/merged/release/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'.

/Users/XXXX/Workspace/app-react-native/node_modules/react-native-cookies/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

@fortezhuo fortezhuo changed the title node_modules/react-native-cookies/android/build/intermediates/res/merged/release/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'. AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'. Jul 5, 2018
@ptraeg
Copy link
Contributor

ptraeg commented Jul 13, 2018

I had this same issue as well and fixed in in PR #102

@alainib
Copy link

alainib commented Aug 22, 2018

i still get the issue on react-native v0.56.0
@ptraeg how did you fix it please ?

@fortezhuo
Copy link
Author

fortezhuo commented Aug 23, 2018

@alainib
I had solved this problem.

Just add below line into your build.gradle in your android folder (TOP LEVEL)

subprojects {
    afterEvaluate {project ->
        if (project.hasProperty("android")) {
            android {
                compileSdkVersion 26
                buildToolsVersion '26.0.3'
            }
        }
    }
}

You can change compileSdkVersion and buildToolsVersion variable, but I suggest to make them similar with android/app/build.gradle. So while you compile your react native project, all requested android modules will be recompiled based on your build.gradle setting

@zhangxy1219
Copy link

zhangxy1219 commented Sep 14, 2018

No hardcode version recommended. Use rootProject.ext.compileSdkVersion and rootProject.ext.buildToolsVersion instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants