Skip to content

Instantly share code, notes, and snippets.

@codigoinerte
Last active July 15, 2022 16:07
Show Gist options
  • Save codigoinerte/25d3453a04b1cfe27aad90acfcd28efe to your computer and use it in GitHub Desktop.
Save codigoinerte/25d3453a04b1cfe27aad90acfcd28efe to your computer and use it in GitHub Desktop.
Final compile react-native-bluetooth-escpos-printer
/*
1.- Add this lines to final android/build.gradle
2.- 'compileSdkVersion, buildToolsVersion and targetSdkVersion' should have same version to 'buildscript' in the same file
*/
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "27.1.1"
}
}
}
afterEvaluate {
if(it.hasProperty('android')){
android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
defaultConfig {
targetSdkVersion 27
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment