januslo / react-native-bluetooth-escpos-printer

React-Native plugin for the bluetooth ESC/POS & TSC printers.
MIT License
368 stars 430 forks source link

react-native-bluetooth-escpos-printer variant release error #179

Open Topandhi opened 2 years ago

Topandhi commented 2 years ago

Android compileSdkVersion is 27 and My React Native Android compileSdkVersion is 30, makes i cannot build my app.

All Error Log With --warning-mode all

..\App\android>gradlew assembleRelease --warning-mode all

Configure project :app WARNING:: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed in version 7.0 of the Android Gradle plugin. For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.

Configure project :react-native-bluetooth-escpos-printer Using insecure protocols with repositories, without explicit opt-in, has been deprecated. This is scheduled to be removed in Gradle 7.0. Switch Maven repository 'BintrayJCenter(http://jcenter.bintray.com/)' to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/6.9/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details. Using insecure protocols with repositories, without explicit opt-in, has been deprecated. This is scheduled to be removed in Gradle 7.0. Switch Maven repository 'maven(http://repo.spring.io/plugins-release/)' to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/6.9/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details. WARNING:: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed in version 7.0 of the Android Gradle plugin. For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.

Configure project :react-native-scan-barcode WARNING:: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed in version 7.0 of the Android Gradle plugin. For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.

Configure project :react-native-webview Adding a Configuration as a dependency is a confusing behavior which isn't recommended. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. If you're interested in inheriting the dependencies from the Configuration you are adding, you should use Configuration#extendsFrom instead. See https://docs.gradle.org/6.9/dsl/org.gradle.api.artifacts.Configuration.html#org.gradle.api.artifacts.Configuration:extendsFrom(org.gradle.api.artifacts.Configuration[]) for more details. WARNING:: The specified Android SDK Build Tools version (27.0.3) is ignored, as it is below the minimum supported version (30.0.2) for Android Gradle Plugin 4.2.2. Android SDK Build Tools 30.0.2 will be used. To suppress this warning, remove "buildToolsVersion '27.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools. WARNING:: The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (30.0.2) for Android Gradle Plugin 4.2.2. Android SDK Build Tools 30.0.2 will be used. To suppress this warning, remove "buildToolsVersion '23.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

Task :app:bundleReleaseJsAndAssets warning: the transform cache was reset. Welcome to Metro! Fast - Scalable - Integrated

info Writing bundle output to:, ..\App\android\app\build\generated\assets\react\release\index.android.bundle info Writing sourcemap output to:, ..\App\android\app\build\generated\sourcemaps\react\release\index.android.bundle.map info Done writing bundle output info Done writing sourcemap output info Copying 6 asset files info Done copying assets <

Task :react-native-bluetooth-escpos-printer:parseReleaseLocalResources UP-TO-DATE Using insecure protocols with repositories, without explicit opt-in, has been deprecated. This is scheduled to be removed in Gradle 7.0. Switch Maven repository 'maven4(http://repo.spring.io/plugins-release/)' to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/6.9/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details. Daemon will be stopped at the end of the build after running out of JVM memory

Task :app:lintVitalRelease w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath: C:/Users/Admin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.4.10/6229be3465805c99db1142ad75e6c6ddeac0b04c/kotlin-stdlib-common-1.4.10.jar (version 1.4) C:/Users/Admin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.4.10/30e46450b0bb3dbf43898d2f461be4a942784780/kotlin-stdlib-jdk7-1.4.10.jar (version 1.4) C:/Users/Admin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.4.10/998caa30623f73223194a8b657abd2baec4880ea/kotlin-stdlib-jdk8-1.4.10.jar (version 1.4) C:/Users/Admin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.4.10/ea29e063d2bbe695be13e9d044dcfb0c7add398e/kotlin-stdlib-1.4.10.jar (version 1.4) C:/Users/Admin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.5.20/9de35cc611bcecec8edce1d56d8e659953806751/kotlin-stdlib-1.5.20.jar (version 1.5) C:/Users/Admin/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.5.20/3d79dbd48bf605f4aac1e7028981a1953e245cbb/kotlin-stdlib-common-1.5.20.jar (version 1.5) w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath

Task :react-native-scan-barcode:verifyReleaseResources FAILED Task :react-native-webview:syncReleaseLibJars FAILED <<<<============-> 98% EXECUTING [7m 33s]

FAILURE: Build completed with 3 failures.

1: Task failed with an exception.

2: Task failed with an exception.

3: Task failed with an exception.

BUILD FAILED in 8m 48s 255 actionable tasks: 6 executed, 249 up-to-date <-------------> 0% WAITING

..\App\android>

gandol commented 2 years ago

try this solution dude #37 work for me