Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource Linking Failing during ./gradlew assembleRelease #71

Open
devfordays opened this issue Jul 30, 2019 · 4 comments
Open

Resource Linking Failing during ./gradlew assembleRelease #71

devfordays opened this issue Jul 30, 2019 · 4 comments

Comments

@devfordays
Copy link

Been trying to assemble an apk for a long time now but keep running across this error when building.

java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
node_modules/react-native-dialogflow/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:7: error: resource android:attr/colorError not found.
node_modules/react-native-dialogflow/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:11: error: resource android:attr/colorError not found.
node_modules/react-native-dialogflow/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
node_modules/react-native-dialogflow/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
node_modules/react-native-dialogflow/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
node_modules/react-native-dialogflow/android/build/intermediates/res/merged/release/values/values.xml:2747: error: resource android:attr/fontStyle not found.
node_modules/react-native-dialogflow/android/build/intermediates/res/merged/release/values/values.xml:2748: error: resource android:attr/font not found.
node_modules/react-native-dialogflow/android/build/intermediates/res/merged/release/values/values.xml:2749: error: resource android:attr/fontWeight not found.
node_modules/react-native-dialogflow/android/build/intermediates/res/merged/release/values/values.xml:2750: error: resource android:attr/fontVariationSettings not found.
/node_modules/react-native-dialogflow/android/build/intermediates/res/merged/release/values/values.xml:2751: error: resource android:attr/ttcIndex not found.

Any ideas ?? Your help is much appreciated.

@eggybot
Copy link

eggybot commented Jul 31, 2019

RN version?

@jaklew
Copy link

jaklew commented Nov 25, 2019

For anyone building an app with RN ^0.60.0, I was able to build the apk with a little help from GitHub: expo/create-react-native-app#499 (comment)
Only changing the SDK & build tools versions to 28 and 28.0.3, respectively.

@Gabsys
Copy link

Gabsys commented Jan 22, 2020

For anyone building an app with RN ^0.60.0, I was able to build the apk with a little help from GitHub: react-community/create-react-native-app#499 (comment)
Only changing the SDK & build tools versions to 28 and 28.0.3, respectively.

worked for me! Thanks!!

@rikinshah23
Copy link

rikinshah23 commented May 2, 2020

@eggybot @jaklew @Gabsys
I am having same issue.
This is my build.gradle file:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext {
        buildToolsVersion = "28.0.3"
        minSdkVersion = 16
        compileSdkVersion = 28
        targetSdkVersion = 28
    }
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath("com.android.tools.build:gradle:3.5.2")
        classpath 'com.google.gms:google-services:4.2.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenLocal()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url("$rootDir/../node_modules/react-native/android")
        }
        maven {
            // Android JSC is installed from npm
            url("$rootDir/../node_modules/jsc-android/dist")
        }

        google()
        jcenter()
        maven { url 'https://www.jitpack.io' }
    }
}

My RN version is 0.62.2
I am still unable to build the apk for react native android project.

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

No branches or pull requests

5 participants