react-native-bluetooth-escpos-printer
react-native-bluetooth-escpos-printer copied to clipboard
Any Idea why my app failing to build in assebleRelease,In error logs I see react-native-bluetooth-escpos-printer error logs
I got these error logs while building app with cli: export ENVFILE=.env && cd android && ./gradlew assembleRelease --debug;
also, I can see Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0 , In error logs
I'm facing the same problem here...
I solved my problem changing the compileSdkVersion to 28 and buildToolsVersion to "28.0.3" , and compile to implementation in build.gradle YOUR_PROJECT/node_modules/react-native-bluetooth-escpos-printer/android/build.gradle
:
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {...}
...
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.facebook.react:react-native:+' // From node_modules
implementation ...
}
I hope that works to you!
same thing I did
I just change buildToolVesion and compileSdkVersion
Go to the dependency build.gradle folder YOUR_PROJECT/node_modules/react-native-bluetooth-escpos-printer/android/build.gradle
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
minSdkVersion = 21
targetSdkVersion = 31
versionCode 1
versionName "1.0"
}