Pushwoosh / pushwoosh-react-native-plugin

Other
58 stars 44 forks source link

Task :pushwoosh-react-native-plugin:verifyReleaseResources FAILED #58

Closed ghost closed 5 years ago

ghost commented 5 years ago

Setup

ERROR ON ANDROID BUILD

'''> Task :pushwoosh-react-native-plugin:verifyReleaseResources FAILED

FAILURE: Build failed with an exception.

wfhm commented 5 years ago

Hi @MrDatastorage ,

Looks like a duplicate of #53. Please try the solution described in the linked issue and let us know about results.

ghost commented 5 years ago

@wfhm I have changed in the modules the following: ''' implementation "com.android.support:appcompat-v7:28.+" implementation "com.android.support:recyclerview-v7:28.+" api "com.android.support:design:28.+" ''' It is still not working

wfhm commented 5 years ago

@MrDatastorage

You specify supportLibVersion = "28.0.0" in your gradle settings, however in the plugin you have 28.+ version. The minor versions should also match - could you please check which version was used in your project, or, better, just set it to 28.0.0 and let us know about results?

wfhm commented 5 years ago

@MrDatastorage any news on this one?

mgpepe commented 5 years ago

I have the same issue:

Execution failed for task ':pushwoosh-react-native-plugin:verifyReleaseResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
  /Users/vagrant/git/node_modules/pushwoosh-react-native-plugin/src/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
  /Users/vagrant/git/node_modules/pushwoosh-react-native-plugin/src/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
  /Users/vagrant/git/node_modules/pushwoosh-react-native-plugin/src/android/build/intermediates/res/merged/release/values/values.xml:3185: error: resource android:attr/fontVariationSettings not found.
  /Users/vagrant/git/node_modules/pushwoosh-react-native-plugin/src/android/build/intermediates/res/merged/release/values/values.xml:3186: error: resource android:attr/ttcIndex not found.
  error: failed linking references.

Gradle:


buildscript {
    ext {
        buildToolsVersion = "28.0.3"
        minSdkVersion = 16
        compileSdkVersion = 28
        targetSdkVersion = 28
        supportLibVersion = "28.0.0"
    }
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.1'
        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()
        google()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
    }
}

Versions:

RN: "0.59.3"
pushwoosh-react-native-plugin: "5.14.2"
wfhm commented 5 years ago

@mgpepe the issue is caused by different versions of Android support libs used in your project by different plugins. You can find instructions on resolving this particular conflict in this issue.