AndroidManifest

Please post anything related to the Hollywood APK Compiler here
Post Reply
amyren
Posts: 372
Joined: Thu May 02, 2019 11:53 am

AndroidManifest

Post by amyren »

I got this message when trying to upload an app to google play
Play installer check requires a minimum SDK version of 21 or higher. The uploaded app bundle has a minimum SDK version of 19. Update the minSdkVersion in your app's Android manifest.

Here is my manifest.
Where in the manifest should I put the statement minSdkVersion 21 ?

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<!-- BEGIN_INCLUDE(manifest) -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
	xmlns:tools="http://schemas.android.com/tools"
        package="%PACKAGE%">

    <uses-feature android:glEsVersion="0x00020000" />
    <uses-feature android:name="android.hardware.camera" android:required="false" />    
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.VIBRATE"/> 
             
    <application android:icon="@drawable/ic_launcher" android:label="@string/app_name">
        
        <!-- NB: for some reason Lint returns a wrong "MissingClass" for both HollywoodDelegate and
             FileRequest class so we disable checking for this error. As soon as this problem is
             fixed in Lint, we should remove 'tools:ignore="MissingClass"' again because obviously
             we want Lint to do its checks but as of September 2021, this seems to be broken -->
                 
        <activity android:name=".HollywoodDelegate"
                android:label="@string/app_name"
                android:configChanges="orientation|screenSize"
                android:exported="true"
		android:theme="@style/%THEME%"
		tools:ignore="MissingClass">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <activity android:name=".FileRequest" android:configChanges="orientation|screenSize" android:theme="@style/%THEME%" tools:ignore="MissingClass"/> 
        
	<provider
        	android:name="androidx.core.content.FileProvider"
        	android:authorities="${applicationId}.fileprovider"
        	android:exported="false"
        	android:grantUriPermissions="true">
        	<meta-data
            		android:name="android.support.FILE_PROVIDER_PATHS"
            		android:resource="@xml/file_paths"></meta-data>
    	</provider>                   
    </application>

</manifest> 
<!-- END_INCLUDE(manifest) -->
amyren
Posts: 372
Joined: Thu May 02, 2019 11:53 am

Re: AndroidManifest

Post by amyren »

Hm. I now included these lines in my manifest, but google still refuse to accept the bundle:
Play installer check requires a minimum SDK version of 21 or higher. The uploaded app bundle has a minimum SDK version of 19. Update the minSdkVersion in your app's Android manifest.
I will try to update to gradle 8.0 and a newer CMake and see if that makes a difference.

Code: Select all

      <uses-sdk  
        android:minSdkVersion="21"  
        android:targetSdkVersion="34" />
amyren
Posts: 372
Joined: Thu May 02, 2019 11:53 am

Re: AndroidManifest

Post by amyren »

I was misguided by the google error message to look in the AndroidManifest.xml, but it apears that there is a minSdkVersion setting in the build.gradle script also that overrides whatever is in the manifest setting.
I got it resolved now by editing the build gradle setting
Post Reply