Sorry, I linked the wrong commit in the previous post. For reference it was 
9deb331 
<https://android.googlesource.com/platform/build/+/9deb331f20bf643ebcdffae00f9512c5696c2b50%5E!/>
.

Jean-Marie.

Le mardi 2 avril 2019 17:51:43 UTC+2, Baran Jean-Marie a écrit :
>
> Hello,
>
> We have an APK which must define a minSdk version of at least 16 because 
> of dependencies. Adding <uses-sdk android:minSdkVersion='25' /> in the 
> AndroidManifest.xml works in the AOSP but not in Android Studio:
>
> The minSdk version should not be declared in the android manifest file. 
>> You can move the version from the manifest to the defaultConfig in the 
>> build.gradle file.
>>
>
> However, removing <uses-sdk android:minSdkVersion='25' /> works in 
> Android Studio, but not in the AOSP:
>
> Error: Main manifest has <uses-sdk android:minSdkVersion='1'> but library 
>> uses minSdkVersion='16'
>>
>
> I tried as well with <uses-sdk tools:merge="override" />, but that only 
> works for the AOSP. Is there a way to have a cross-build 
> AndroidManifest.xml that would work for both the AOSP and Gradle? Because 
> currently we have to manually edit it each time we want to build in Android 
> Studio, which is not practical.
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to