Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build app with epub problem #29

Open
pavannx opened this issue Jul 20, 2020 · 5 comments
Open

Build app with epub problem #29

pavannx opened this issue Jul 20, 2020 · 5 comments

Comments

@pavannx
Copy link

pavannx commented Jul 20, 2020

Hello, when I try build my app using the epub package, the Assemble Debug gives me the following error:

uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library [:epub_kitty] C:\Users\mpavan\Desktop\pdf_viewer\pdfp\build\epub_kitty\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 21,
or use tools:overrideLibrary="com.xiaofwang.epub_kitty" 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 21 declared in library [:epub_kitty] C:\Users\mpavan\Desktop\pdf_viewer\pdfp\build\epub_kitty\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 21,
or use tools:overrideLibrary="com.xiaofwang.epub_kitty" to force usage (may lead to runtime failures)

@silviocandido
Copy link

File = android/app/build.gradle
Modify this = minSdkVersion 16
to = minSdkVersion 21

@pavannx
Copy link
Author

pavannx commented Jul 20, 2020

@silviocandido Thks man, the issue I complained about was solved, but I got a new one.

SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

  • 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

@silviocandido
Copy link

File = android/local.properties
Value to my MAC = sdk.dir=/Users/admin/Library/Android/sdk
Reference = https://stackoverflow.com/questions/27620262/sdk-location-not-found-define-location-with-sdk-dir-in-the-local-properties-fil

@pavannx
Copy link
Author

pavannx commented Jul 20, 2020

I tried every single answer that had on this link but none of then solved my issue.

I'm trying to use this plugin/package on my app to read and search words in a pdf reader, but i've got this SDK issue and can't build my application anymore.

I already read all about this and can't find a solution

PS: my computer is a Windows and Im working with Flutter.

@pavannx
Copy link
Author

pavannx commented Jul 20, 2020

Update: I solved my last problem (SDK path), but now I got a new one:

Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not find com.github.codetoart:r2-shared-kotlin:1.0.4-2.
Required by:
project :app > com.folioreader:folioreader:0.5.4
Could not find com.github.codetoart:r2-streamer-kotlin:1.0.4-2.
Required by:
project :app > com.folioreader:folioreader:0.5.4

all this because I tried use the plugin epub lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants