I can't generate my APK
I'm using React Native 0.7 and the Android SDK 31
I'm getting this error when I run "assembleRelease":
Task :vision-camera-code-scanner:verifyReleaseResources FAILED
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':vision-camera-code-scanner:verifyReleaseResources'.
A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action Android resource linking failed ERROR:C:\Users\Tecnoandina.gradle\caches\transforms-3\efc5fbdc5cddabff1e6dbe6ad771c56d\transformed\core-1.7.0\res\values\values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found. *
Can you help me with that? Before I had the error with other package, and they fixed it doing the following: https://github.com/kenjdavidson/react-native-bluetooth-classic/issues/202
Now I only have the problem using this plugin (vision-camera-code-scanner)
VisionCameraCodeScanner_compileSdkVersion = Integer.parseInt(findProperty('android.compileSdkVersion') ?: fallbackVersion)
VisionCameraCodeScanner_minSdkVersion = Integer.parseInt(findProperty('android.minSdkVersion') ?: fallbackVersion)
VisionCameraCodeScanner_targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: fallbackVersion)
I resolve by putting these in root build.gradle file
Hi @mthinh, Can you provide more detail on your solution please. You mean the root build.gradle of your projet or of the dependency ?
You put it like this at the end of the file or inside buildscript {} or something else ?
Thank you.
Worked for me: android/build.gradle
buildscript {
ext {
...
VisionCameraCodeScanner_targetSdkVersion = 31 //add
VisionCameraCodeScanner_compileSdkVersion = 31 //add
}
...
}
Then get build in offline mode
Worked for me: android/build.gradle
buildscript { ext { ... VisionCameraCodeScanner_targetSdkVersion = 31 //add VisionCameraCodeScanner_compileSdkVersion = 31 //add } ... }Then get build in offline mode
it's working TYSM
Worked for me: android/build.gradle
buildscript { ext { ... VisionCameraCodeScanner_targetSdkVersion = 31 //add VisionCameraCodeScanner_compileSdkVersion = 31 //add } ... }Then get build in offline mode
Thanks, this works for me