Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49186

minSdkVersion issue

$
0
0

@schueppi wrote:

I have got some trouble with the configuration of minSdkVersion

if I build my application with ionic build android i get this error

C:\Program Files (x86)\Jenkins\workspace__temp-mobile-prev\platforms\android\AndroidManifest.xml:67:5 Error:
uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library C:\Program Files (x86)\Jenkins\workspace__temp-mobile-prev\platforms\android\build\intermediates\exploded-aar\com.paypal.sdk\paypal-android-sdk\2.14.2\AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.paypal.android.sdk.payments" to force usage

But I set the min sdk property inside config.xml

<platform name="android">
         <preference name="android-minSdkVersion" value="18"/>
         <preference name="android-targetSdkVersion" value="22"/>
</platform>

and the generated AndroidManifest.xml inside platforms/android doesn't look bad
<uses-sdk android:minSdkVersion="18" android:targetSdkVersion="22" />

It works if I overwrite gradle.build

android{
      defaultConfig {
        minSdkVersion 18
     }
}

But I don't want to do that. Because I don't want adjust this dynamic generated file.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49186

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>