Closed dragorwyin closed 1 year ago
I added following things in android/build.gradle:
buildscript {
ext {
buildToolsVersion = '31.0.0'
minSdkVersion = 24
}
}
allprojects {
configurations.all {
resolutionStrategy {
force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
force 'androidx.core:core-ktx:1.6.0'
force 'androidx.appcompat:appcompat:1.2.0'
force 'androidx.core:core-ktx:1.6.0'
}
}
repositories {
exclusiveContent {
filter {
includeGroup "com.facebook.react"
}
forRepository {
maven {
url "$rootDir/../node_modules/react-native/android"
}
}
}
}
and in android/app/build.gradle following dependencies:
implementation 'androidx.appcompat:appcompat:1.2.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
After building app with Android Studio, command is working also. I will reopen this ticket if any issues will occur still.
Hello, I have following error after trying to build the Android app:
also in some other cases while trying to reach out any solutions I have following error:
I tried to follow all solutions from: https://stackoverflow.com/questions/69033022/message-error-resource-androidattr-lstar-not-found
I would like to mention I had a ticket here: https://github.com/BlinkID/blinkid-react-native/issues/200 but this ticket was resolved only for debug veersion of app.
My app settings: compileSdkVersion 31 minSdkVersion 23 targetSdkVersion 31
Packages versions: React-native: 0.68.1 React: 17.0.2 blinkid-react-native: 5.17.0
But nothing helped. It helped only with "debug" release. I need some assistance with this problem. Thank you.
@edit I can see I'm able to build the release apk directly from Android Studio, but it's not working for this command line:
gradlew --build-file=build.gradle assembleRelease