question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to build on Android with RN 0.45.1: AAPT: Error retrieving parent for item:

See original GitHub issue

On android with react native 0.45.1 this library can’t be build and throws the following errors:

./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'.

./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'.

./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'.

./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'.

Steps to reproduce:

react-native init test --version react-native@0.45.1
cd test
yarn add react-native-background-upload
react-native link
cd android && ./gradlew assembleDebug

With react-native 0.42 this is not an issue.

Some hints about it: i am not that familiar with android native but from some people i’ve heard that it can have do something with buildToolsVersion.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
laurindocommented, Jan 6, 2018

I´ve resolved changing my build.gradle inside android/build.gradle :

old: android: { compileSdkVersion 23 buildToolsVersion “23.0.1” … }

dependencies: { compile “com.android.support:appcompat-v7:23.0.1” … }

to android: { compileSdkVersion 24 buildToolsVersion “24.0.1” … }

dependencies: { compile “com.android.support:appcompat-v7:24.0.1” … }

0reactions
pablotecommented, Dec 17, 2017

The readme mentions this in the Manual Native Library Linking section, which you probably skip if you do automatic linking.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error retrieving parent for item: No resource found that ...
in node_modules\react-native-fbsdk\android\build.gradle ... I solve that problem by only modifying android/app/build.gradle file.
Read more >
AAPT: Error retrieving parent for item: No resource found ...
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 ...
Read more >
Known issues with Android Studio and Android Gradle Plugin
This error occurs on Linux-based platforms when starting the native debugger. It indicates that one of the libraries required by the native debugger...
Read more >
Error retrieving parent for item: No resource found that ...
Solution 4: This issue is raised because now the compile SDK version must match the Android Support library's major version. If we have...
Read more >
Removing error "Error retrieving parent for item:No ... - YouTube
Way to remove error " Error retrieving parent for item...." and error "Found 2 versions of android -support-v4.jar in the dependency list ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found