Driversnote-Dev / react-native-kontaktio

React Native (iOS and Android) library for Kontakt.io beacons (and all other beacons)
MIT License
112 stars 48 forks source link

Android resource linking failed #95

Open mishkeTz opened 2 years ago

mishkeTz commented 2 years ago

RN: 0.66.4 kontaktio: 3.1.0

When I run ./gradlew assembleRelease I get the following error:

Screenshot 2022-06-05 at 21 12 28

Any ideas how to fix this?

Viresh777 commented 2 years ago

Any feedback on this? buildscript { ext { buildToolsVersion = "30.0.2" minSdkVersion = 21 compileSdkVersion = 30 targetSdkVersion = 30 ndkVersion = "21.4.7075529" }

Guccieii commented 2 years ago

Same problem here with the following versions:

{
        buildToolsVersion = "30.0.2"
        minSdkVersion = 21
        compileSdkVersion = 31
        targetSdkVersion = 30
        ndkVersion = "20.1.5948944"
        playServicesVersion = "17.0.0"
        androidMapsUtilsVersion = "2.3.0"
}
Viresh777 commented 2 years ago

i found that if i use react-native run-android --variant=release (it will generate my apk in the releases folder)

Guccieii commented 2 years ago

Unfortunately I cannot do this in my CI/CD environment. But, I manage to fix the error editing the build script from: ./gradlew assembleRelease to ./gradlew app:assembleRelease

Hope it going to be useful for someone else