Android Question Problem with AndroidManifest.xml:31: error

Magma

Well-Known Member
Licensed User
Hi there,

i ve changed my pc and re-installed all apps including b4android too..

reinstall additional libs..
+android sdk... all tools, all jar all things..
copied google-play-services.jar to my libs folder...

but when i re-compile my app gets following msg:

Parsing code. 0.04
Compiling code. 0.10
Compiling layouts code. 0.01
Generating R file. Error
AndroidManifest.xml:31: error: Error: String types not allowed (at 'configChanges' with value 'keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize').


what is my prob ?

thank in advance...

my manifest is:

'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 for more information: http://www.basic4ppc.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
AddPermission("android.permission.CALL_PHONE")
AddPermission(android.permission.MODIFY_AUDIO_SETTINGS)
AddApplicationText(<activity android:name="anywheresoftware.b4a.objects.preferenceactivity"/>)
'End of default text.
'AdMob
AddApplicationText(
<meta-data android:name="com.google.android.gms.version"
android:value="@Integer/google_play_services_version"/>
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
)
'End of AdMob
 
Last edited:

DonManfred

Expert
Licensed User
Upvote 0

Magma

Well-Known Member
Licensed User
that you forget to post the contents of your manifest-file?

you are right...

'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 for more information: http://www.basic4ppc.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
AddPermission("android.permission.CALL_PHONE")
AddPermission(android.permission.MODIFY_AUDIO_SETTINGS)
AddApplicationText(<activity android:name="anywheresoftware.b4a.objects.preferenceactivity"/>)
'End of default text.
'AdMob
AddApplicationText(
<meta-data android:name="com.google.android.gms.version"
android:value="@Integer/google_play_services_version"/>
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
)
'End of AdMob
 
Upvote 0

DonManfred

Expert
Licensed User
try change
AddApplicationText(
<meta-data android:name="com.google.android.gms.version"
android:value="@@Integer/google_play_services_version"/>
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
)

to

AddApplicationText(
<meta-data android:name="com.google.android.gms.version"
android:value="@@Integer/google_play_services_version"/>
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode"/>
)

Found here.

maybe it´s just the wrong android.jar

Which version of android.jar are you using? Check Tools - Configure Paths and update it to a more recent version (your app will still support older versions).
 
Upvote 0

Magma

Well-Known Member
Licensed User
old android.jar... thank u!
 
Upvote 0
Top