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.

[react-native-fbsdk] Build failed with Error :app:processDebugResources and values-v26.xml resource not found

See original GitHub issue

Working on React Native Facebook login with ‘react-native-fbsdk’ I am getting my build fail.

Environment

Environment: OS: Windows 7 Node: 8.9.3 Yarn: 1.5.1 npm: 4.6.1 Watchman: Not Found Xcode: N/A Android Studio: Not Found Packages: (wanted => installed) react: 16.3.0-alpha.1 => 16.3.0-alpha.1 react-native: 0.54.0 => 0.54.0

Expected Behavior

Build To get successful without errors

Actual Behavior

Following Error:

C:\Users\HP\Desktop\collegesearch\android\app\build\intermediates\res\merged\de ug\values-v26\values-v26.xml:15:21-54: AAPT: No resource found that matches the given name: attr ‘android:keyboardNavigationCluster’.

C:\Users\HP\Desktop\collegesearch\android\app\build\intermediates\res\merged\de ug\values-v24\values-v24.xml:3: error: Error retrieving parent for item: No res urce found that matches the given name ‘android:TextAppearance.Material.Widget. utton.Borderless.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

Steps to Reproduce

Make a new React Native app with Native Code(Not CRNA) using following command: react-native init YourProjectName get to the project directory: CD YourProjectName Now for installing react-native-fbsdk(For implementing Login functionality via Facebook): npm install react-native-fbsdk Link the module: react-native link react-native-fbsdk

Follow the guide in the following link: https://github.com/facebook/react-native-fbsdk (Make changes in MainActivity.java, MainApplication.java, Stings.xml and AndroidManifest.xml, build.gradle files as you follow the above guide.)

I advice to do the gradlew clean by: CD android gradlew clean

Make sure you have an emulator running.

Then you build the code using following command: react-native run-android

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
leedongweicommented, Mar 7, 2018

This seems to be an issue that has been going around for a few months. I managed to get it working by downgrading react-native-fbsdk to v0.6.3 and facebook-android-sdk to v4.22.1.

Workaround

  1. yarn add react-native-fbsdk@0.6.3
  2. Follow the workaround from this thread, edit your android/app/build.gradle file
allprojects {
    configurations.all {
       resolutionStrategy {
         eachDependency { DependencyResolveDetails details ->
           if (details.requested.group == 'com.facebook.react' && details.requested.name == 'react-native') {
             details.useVersion "0.54.0" // Your real React Native version here
           }
         }
         force 'com.facebook.android:facebook-android-sdk:4.22.1'
       }
    }
}

Related threads

1reaction
leedongweicommented, Jul 3, 2018

@hramos You tagged this issue as “Incomplete Reproduction Steps”. Can I help with clarifying any missing steps, or would having a repo to fork help with this? I’m experiencing the same problem on macOS Sierra too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

gradle build failed after installing react-native-fbsdk with ...
I fixed it by upgrading to sdk 26 compileSdkVersion 26 buildToolsVersion "26.0.1". and appcompat:
Read more >
Fix "Execution failed app:processDebugResources" in ...
To find out what's exactly causing the error, we can use the –stacktrace command. Step 1: Navigate to File > Settings. Step 2:...
Read more >
Thread: APK build process fails (processDebugResources?)
I get the following error log: > Configure project : it is windows 10 ... AAPT: error: resource android:attr/colorError not found.
Read more >
React Native:错误:资源android - 编程字典
Colored not found. error: resource android:style/TextAppearance.Material.Widget. ... /res/values-v26/values-v26.xml:17:5-93: AAPT: error: style attribute ...
Read more >
Updated Android Studio – many errors now
dir\values-v26\values-v26.xml:11: error: resource android:attr/colorError not found. ... found. W:\android-studio-projects\sharedid\app\build\intermediates\ ...
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