Android Question Google Play & Target API level

luke2012

Well-Known Member
Licensed User
Longtime User
Hi everyone, I would like to point out that in the app manifest I currently have...
B4X:
 'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="34"/>
........

Despite there being targetSdkVersion="34" in the app manifest (as you can see), on Google Play Console I read: "Policy violations, App must target Android 13 (API level 33) or later. subsequent" with a red icon with an exclamation mark.

At this point I wonder, since the violation of Google Play rules continues to appear: is it sufficient to declare targetSdkVersion="34" within the app manifest, or do I also have to do other ?
 

Brian Dean

Well-Known Member
Licensed User
Longtime User
Have you submitted your updated application yet? I have just been through this process and the warning did not disappear when I loaded the app, only after I had submitted it. Incidentally, this was the only update and the app update was live immediately. -
 
Upvote 0

luke2012

Well-Known Member
Licensed User
Longtime User
This is the only place. You can check the generated Objects\AndroidManifest.xml file. Make sure that the field isn't declared multiple times. Unlikely.
Hi Erel. Thanks for your reply. Let me check.
 
Upvote 0

luke2012

Well-Known Member
Licensed User
Longtime User
This is the only place. You can check the generated Objects\AndroidManifest.xml file. Make sure that the field isn't declared multiple times. Unlikely.

B4X:
<?xml version="1.0" encoding="utf-8"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="myapp.android.name" 
    android:versionCode="94"
    android:versionName="1.3.0"
    android:installLocation="internalOnly">
    
    <uses-sdk android:minSdkVersion="5" android:targetSdkVersion="34"/>
    <supports-screens android:largeScreens="true" 
        android:normalScreens="true" 
        android:smallScreens="true" 
        android:anyDensity="true"/>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.VIBRATE"/>
    <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
    <uses-permission android:name="android.permission.WAKE_LOCK"/>
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
    <uses-permission android:name="android.permission.CALL_PHONE"/>
    <application
        android:icon="@drawable/icon"
        android:label="BotegApp"
        android:theme="@style/LightTheme">
        <activity
            android:windowSoftInputMode="stateHidden"
            android:launchMode="singleTop"
            android:name=".main"
            android:label="BotegApp"
            android:screenOrientation="portrait"
            android:exported="true">
            <intent-filter>
               <action android:name="android.intent.action.MAIN" />
               <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            
        </activity>
        <service
            android:name=".srvchecknews"
            android:exported="true">
        </service>
        <receiver
            android:name=".srvchecknews$srvchecknews_BR"
            android:exported="true">
        </receiver>
        <service
            android:name=".starter"
            android:exported="true">
        </service>
        <receiver
            android:name=".starter$starter_BR"
            android:exported="true">
        </receiver>
        <receiver
            android:name=".httputils2service"
            android:exported="true">
        </receiver>
    </application>
</manifest>

from what I see in the AndroidManifest.xml file it seems to be declared correctly, right?
 
Upvote 0
Top