urbanairship / react-native-airship

Airship React Native module
Other
88 stars 62 forks source link

Build failed on Android #76

Closed idrakimuhamad closed 6 years ago

idrakimuhamad commented 6 years ago

I've just updated to v1.4.1. Due to lack of clear instruction in the documentation, I didn't realise that the update also involved SDKs upgrade, which I've did. However, on my Android build it throwing error with this output

/node_modules/urbanairship-react-native/android/build/intermediates/manifests/aapt/release/AndroidManifest.xml:52:28-51: AAPT: No resource found that matches the given name (at 'theme' with value '@style/LandingPageStyle').

/node_modules/urbanairship-react-native/android/build/intermediates/manifests/aapt/release/AndroidManifest.xml:49: error: Error: No resource found that matches the given name (at 'theme' with value '@style/LandingPageStyle').

:urbanairship-react-native:processReleaseResources FAILED

I've updated the SDK to 9.0.0 in build.gradle. Below are the properties in my gradle.

    compileSdkVersion 26
    buildToolsVersion "26.0.2"

    defaultConfig {
        applicationId "com.rhbinsurancemobile"
        minSdkVersion 16
        targetSdkVersion 22
        versionCode 32
        versionName "0.1.0"
        ndk {
            abiFilters "armeabi-v7a", "x86"
        }
    }

...

compile 'com.google.android.gms:play-services-gcm:[11.0.1,)'
compile 'com.urbanairship.android:urbanairship-sdk:9.0.0'

I've cleaned gradle, upgrade my Android Studio to v3 but to no avail.

React Native version 0.53.0

rlepinski commented 6 years ago

Fixed in 1.4.2