Open Frankiz123 opened 2 years ago
Thanks for sharing, I had the same issue when compiling the app, this is the error I was getting
Could not resolve all dependencies for configuration ':react-native-bluetooth-escpos-printer:classpath'. Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'BintrayJCenter(http://jcenter.bintray.com/)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/7.2/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details.
Minimum supported Gradle version is 6.7.1.
The file path is ./android/gradle/wrapper/gradle-wrapper.properties
Replace this line
distributionUrl=https://services.gradle.org/distributions/gradle-6.7.1-all.zip
Thanks for sharing, I had the same issue when compiling the app, this is the error I was getting
Could not resolve all dependencies for configuration ':react-native-bluetooth-escpos-printer:classpath'. Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'BintrayJCenter(http://jcenter.bintray.com/)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/7.2/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details.
Minimum supported Gradle version is 6.7.1.
The file path is ./android/gradle/wrapper/gradle-wrapper.properties
Replace this line
distributionUrl=https://services.gradle.org/distributions/gradle-6.7.1-all.zip
@usfslk i think this library is not supported with star printers Model Star Micronics TSP143IIIBi.
I had same too
but it is giving me this error :-- `FAILURE: Build failed with an exception.
What went wrong: Could not open settings generic class cache for settings file 'D:\Healthmung Mobile Projects\healthmug-DCOrders\DCOrders\android\settings.gradle' (C:\Users\Healthmug.gradle\caches\6.7.1\scripts\462wk6ikruj09j651j8sd6bl0).
BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 61
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 893ms
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. FAILURE: Build failed with an exception. `
Update this line
jcenter { url "http://jcenter.bintray.com/"; allowInsecureProtocol = true } maven {url "http://repo.spring.io/plugins-release/"; allowInsecureProtocol = true}
work for me this change
I found Issue in this library for the android it dosen't work on gradle above 7 you have to replace gradle wrapper with this distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip and use ./gradlew clean in android folder this will work