andresperezmelo / print_bluetooth_thermal

Plugin para enviar bytes sin procesar a la impresora solo por ahora para Android
Other
27 stars 29 forks source link

Build failed with an exception #15

Closed Nring-Cham-Aung closed 1 year ago

Nring-Cham-Aung commented 1 year ago

I can build or run my project without print_bluetooth_thermal package. But, if I add print_bluetooth_thermal package in pubspec.yaml file, I get blow the error.

Next one : It is better to use if support custom font styles. Now, we cannot use Myanmar fonts. It does not support.

Error Message

FAILURE: Build failed with an exception.

BUILD FAILED in 3s Running Gradle task 'assembleDebug'... 3.5s Exception: Gradle task assembleDebug failed with exit code 1 rkcoder@Rkcoder print_test %

=======================================================================

My Flutter SDK info is:

rkcoder@Rkcoder print_test % flutter doctor -v [✓] Flutter (Channel stable, 3.10.5, on macOS 13.4.1 22F2083 darwin-arm64, locale en-MM) • Flutter version 3.10.5 on channel stable at /Users/rkcoder/Development/SDK/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 796c8ef792 (8 weeks ago), 2023-06-13 15:51:02 -0700 • Engine revision 45f6e00911 • Dart version 3.0.5 • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /Users/rkcoder/Library/Android/sdk • Platform android-34, build-tools 34.0.0 • ANDROID_HOME = /Users/rkcoder/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 14E300c • CocoaPods version 1.12.1

[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.81.0) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.70.0

[✓] Connected device (3 available) • RMX3686 (mobile) • 5D85BMLJKZRSTSH6 • android-arm64 • Android 13 (API 33) • macOS (desktop) • macos • darwin-arm64 • macOS 13.4.1 22F2083 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 114.0.5735.198

[✓] Network resources • All expected network resources are available.

• No issues found!

Nring-Cham-Aung commented 1 year ago

Solved by changing

id 'org.jetbrains.kotlin.android' version '1.7.10' apply false

to

id 'org.jetbrains.kotlin.android' version '1.8.0' apply false

andresperezmelo commented 1 year ago

Right, that's right, #12