VittoriDavide / react-native-barcode-creator

React Native Barcode Creator creates different type of barcodes including EAN13, CODE128, PDF417, UPCA, QR and AZTEC.
MIT License
21 stars 8 forks source link

Android build error with latest compileSdkVersion version #10

Closed userlab-alejandravelasquez closed 8 months ago

userlab-alejandravelasquez commented 1 year ago

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

AnthonyMwangi commented 1 year ago

Getting the same issue

"react": "18.2.0",
"react-native": "0.72.6",
"react-native-barcode-creator": "^0.1.5",
Youngermaster commented 11 months ago

I'm getting the same issue:

{
...
    "react": "18.2.0",
    "react-native": "0.72.6",
    "react-native-barcode-creator": "^0.1.5",
...
}
Youngermaster commented 11 months ago

@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!

Dat-Mobile commented 10 months ago

@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 !!

Youngermaster commented 10 months ago

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 👍🏻

Dat-Mobile commented 10 months ago

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