react-native-thumbnail icon indicating copy to clipboard operation
react-native-thumbnail copied to clipboard

Android publishing application failed

Open gdoudeng opened this issue 7 years ago • 5 comments

`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.`

gdoudeng avatar Mar 19 '19 08:03 gdoudeng

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:+'
}
  

ngocketit avatar Apr 11 '19 11:04 ngocketit

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

pvroosendaal avatar May 28 '19 21:05 pvroosendaal

same issue with [email protected]

nikopolidi avatar Jun 05 '19 21:06 nikopolidi

Does anyone find a solution for this. Same in 0.59.8

sumudu-dewasurendra avatar Sep 20 '19 07:09 sumudu-dewasurendra

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

SaulNunez avatar Nov 05 '19 16:11 SaulNunez