HeligPfleigh / react-native-thermal-receipt-printer

A RN library for thermal printer
163 stars 103 forks source link

Deprecated Gradle features? #28

Open cinnamonbreakfast opened 3 years ago

cinnamonbreakfast commented 3 years ago

Hello!

I was trying to install this module and then run the app (so i have no code insite yet) and i get this:

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings
31 actionable tasks: 31 executed
Note: E:\rn-projects\test2\node_modules\react-native-pos-printer\android\src\main\java\com\reactlibrary\printer\printing\bluetooth\BluetoothUtils.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
E:\rn-projects\test2\android\app\src\debug\AndroidManifest.xml Error:
        uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:react-native-pos-printer] E:\rn-projects\test2\node_modules\react-native-pos-printer\android\build\intermediates\library_manifest\debug\AndroidManifest.xml as the library might be using APIs not available in 16
        Suggestion: use a compatible library with a minSdk of at most 16,
                or increase this project's minSdk version to at least 19,
                or use tools:overrideLibrary="com.reactlibrary" to force usage (may lead to runtime failures)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:react-native-pos-printer] E:\rn-projects\test2\node_modules\react-native-pos-printer\android\build\intermediates\library_manifest\debug\AndroidManifest.xml as the library might be using APIs not available in 16
        Suggestion: use a compatible library with a minSdk of at most 16,
                or increase this project's minSdk version to at least 19,
                or use tools:overrideLibrary="com.reactlibrary" to force usage (may lead to runtime failures)

* 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 13s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
Note: E:\rn-projects\test2\node_modules\react-native-pos-printer\android\src\main\java\com\reactlibrary\printer\printing\bluetooth\BluetoothUtils.java uses unchecked or unsafe operations.
npm ERR! code 1
npm ERR! path E:\rn-projects\test2
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c "react-native "run-android""

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\penta\AppData\Local\npm-cache\_logs\2020-11-08T11_56_16_202Z-debug.log

Any ideas? Thanks