VittoriDavide/react-native-barcode-creator

Android build error with latest compileSdkVersion version

Closed this issue ยท 6 comments

Hi, i have an error with my compileSdkVersion version 33

What went wrong:
Could not determine the dependencies of task ':react-native-barcode-creator:bundleLibCompileToJarDebug'.

Could not create task ':react-native-barcode-creator:compileDebugJavaWithJavac'.
In order to compile Java 9+ source, please set compileSdkVersion to 30 or above

the version in the build.gradle needs to be updated to 33, it is now at 29

Getting the same issue

"react": "18.2.0",
"react-native": "0.72.6",
"react-native-barcode-creator": "^0.1.5",

I'm getting the same issue:

{
...
    "react": "18.2.0",
    "react-native": "0.72.6",
    "react-native-barcode-creator": "^0.1.5",
...
}

@userlab-alejandravelasquez @Alserk Hey, I solved it by manually updating the compile version needed for my project at node_modules/react-native-barcode-creator/android/build.gradle:
image

@VittoriDavide If you could update the android/build.gradle to newer versions it would be great!

@userlab-alejandravelasquez @Alserk Hey, I solved it by manually updating the compile version needed for my project at node_modules/react-native-barcode-creator/android/build.gradle: image

@VittoriDavide If you could update the android/build.gradle to newer versions it would be great!

This works for me, please merge this ASAP !!

This works for me, please merge this ASAP !!

@Dat-Mobile Glad it helped you, and yeah I hope the owner can merge the #13 Pull Request. But for now that's a workaround for most people ๐Ÿ‘๐Ÿป

Really good work @Youngermaster , for now might only patch-package help