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

Waistline 2.3.4: minSdkVersion 16 cannot be smaller than version 19 declared in library [:CordovaLib] #66

Closed
relan opened this issue Sep 22, 2018 · 8 comments

Comments

@relan
Copy link

relan commented Sep 22, 2018

I'm trying to build Waistline 2.3.4 on a Debian 8.11 system with Gradle 4.1. It fails with

Execution failed for task ':app:processReleaseManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:CordovaLib] /home/fdroid/fdroiddata/build/com.waist.line/platforms/android/CordovaLib/build/intermediates/manifests/full/release/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="org.apache.cordova" to force usage (may lead to runtime failures)

Steps to reproduce:

git checkout 2.3.4
cd platforms/android/app
gradle assembleRelease

Any clues?

P.S. Waistline 2.3.3 builds just fine on the same system.

@davidhealey
Copy link
Owner

The SDK version required was changed for 2.3.4 (I'm not sure why, I think it was a requirement of one of the plugins that I updated).

@relan relan mentioned this issue Sep 28, 2018
@davidhealey
Copy link
Owner

Are you able to build 2.3.3?

@relan
Copy link
Author

relan commented Sep 29, 2018

Yes, 2.3.3 builds just fine on the same system.

@davidhealey
Copy link
Owner

davidhealey commented Oct 2, 2018

Hi,

I'm just looking into this issue now. If you open AndroidManifest.xml file in /platforms/android/app/src/main/ and change this line <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="27" /> to this <uses-sdk android:minSdkVersion="19" android:targetSdkVersion="27" /> Are you able to build?

@davidhealey
Copy link
Owner

Actually I've just made this change and pushed it to the repo, see if you can build the master branch now, if you can I'll push a new release

@relan
Copy link
Author

relan commented Oct 3, 2018

Hi,

I'm on vacation now, away from my PC. Will be able to test only in two weeks.

@davidhealey
Copy link
Owner

davidhealey commented Oct 3, 2018

No problem, enjoy your vacation :)

@relan
Copy link
Author

relan commented Oct 18, 2018

2.3.5 and 2.3.7 were built successfully, so this issue is solved. Thanks!

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