451518849 / epub_kitty

a beautiful flutter epub reader!
https://pub.dev/packages/epub_kitty
Other
66 stars 30 forks source link

android:attr/android:progressBarStyle not found. #10

Closed ghost closed 4 years ago

ghost commented 4 years ago

Launching lib/main.dart on sdk gphone x86 in debug mode... Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

BUİLD FAILED in 4s The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility. Building plugin epub_kitty... Running Gradle task 'assembleAarRelease'...

Configure project : WARNING: The option setting 'android.enableR8=true' is experimental and unsupported. The current default is 'false' Consider disabling R8 by removing 'android.enableR8=true' from your gradle.properties before publishing your app.

FAILURE: Build failed with an exception.

BUİLD FAILED in 0s

Exception: The plugin epub_kitty could not be built due to the issue above.

Plugin working ios device,not working android device. what is the problem?

ghost commented 4 years ago

then i got such an error.

/Users/furkan/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/epub_kitty-0.1.0/android/src/main/java/com/xiaofwang/epub_kitty/Reader.java:6: error: package com.fasterxml.jackson.core.type does not exist import com.fasterxml.jackson.core.type.TypeReference; ^ /Users/furkan/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/epub_kitty-0.1.0/android/src/main/java/com/xiaofwang/epub_kitty/Reader.java:7: error: package com.fasterxml.jackson.databind does not exist import com.fasterxml.jackson.databind.ObjectMapper; ^ /Users/furkan/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/epub_kitty-0.1.0/android/src/main/java/com/xiaofwang/epub_kitty/Reader.java:92: error: cannot find symbol ObjectMapper objectMapper = new ObjectMapper(); ^ symbol: class ObjectMapper /Users/furkan/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/epub_kitty-0.1.0/android/src/main/java/com/xiaofwang/epub_kitty/Reader.java:92: error: cannot find symbol ObjectMapper objectMapper = new ObjectMapper(); ^ symbol: class ObjectMapper /Users/furkan/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/epub_kitty-0.1.0/android/src/main/java/com/xiaofwang/epub_kitty/Reader.java:96: error: cannot find symbol new TypeReference<List>() { ^ symbol: class TypeReference Note: /Users/furkan/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/epub_kitty-0.1.0/android/src/main/java/com/xiaofwang/epub_kitty/EpubKittyPlugin.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 5 errors

FAILURE: Build failed with an exception.

BUİLD FAILED in 6s Exception: Gradle task assembleDebug failed with exit code 1

451518849 commented 4 years ago

it shows com.fasterxml.jackson.core.type does not exist.

451518849 commented 4 years ago

Mybe the plugin not installed correctly in android, try to use android studio to load the epub plugin.