Skip to content
This repository has been archived by the owner on Dec 2, 2019. It is now read-only.

Android publishing application failed #42

Open
gdoudeng opened this issue Mar 19, 2019 · 5 comments
Open

Android publishing application failed #42

gdoudeng opened this issue Mar 19, 2019 · 5 comments

Comments

@gdoudeng
Copy link

`Execution failed for task ':react-native-thumbnail:verifyReleaseResources'.

java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
G:\Users\ASUS\WebStormProjects\shootingv1\node_modules\react-native-thumbnail\android\build\intermediates\res\merged\release\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
G:\Users\ASUS\WebStormProjects\shootingv1\node_modules\react-native-thumbnail\android\build\intermediates\res\merged\release\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
G:\Users\ASUS\WebStormProjects\shootingv1\node_modules\react-native-thumbnail\android\build\intermediates\res\merged\release\values\values.xml:2713: error: resource android:attr/fontVariationSettings not found.
G:\Users\ASUS\WebStormProjects\shootingv1\node_modules\react-native-thumbnail\android\build\intermediates\res\merged\release\values\values.xml:2714: error: resource android:attr/ttcIndex not found.
error: failed linking references.`

@ngocketit
Copy link

You can change the build.gradle in node_modules/react-native-thumbnail to something similar to this as a temporary fix:

buildscript {
    repositories {
        jcenter()
        google()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
    }
}

apply plugin: 'com.android.library'

android {
    compileSdkVersion 28
    buildToolsVersion "28.0.3"

    defaultConfig {
        minSdkVersion 24
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
    }
    lintOptions {
        abortOnError false
    }
}

repositories {
    mavenCentral()
    google()
}

dependencies {
    compile 'com.facebook.react:react-native:+'
}
  

@pvroosendaal
Copy link

@gdoudeng Were you able to fix this? Having the same issue here

@nikopolidi
Copy link

same issue with react-native@0.59.8

@sumudu-dewasurendra
Copy link

Does anyone find a solution for this. Same in 0.59.8

@SaulNunez
Copy link

It's a bit on the hack-y side, but this solution to a similar issue in another RN package worked for me.

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

6 participants