admob compile error

giannimaione

Well-Known Member
Licensed User
Longtime User
hi all

i have a follow error when compile ADMOB lib

B4X:
Compiling code.                         0.02
Compiling layouts code.                 0.00
Generating R file.                      0.00
Compiling generated Java code.          0.77
Convert byte code - optimized dex.      0.66
Packaging files.                        Error
AndroidManifest.xml:20: error: Error: String types not allowed (at 'configChanges' with value 'keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize').

i have added to the manifest editor
B4X:
'AdMob
AddApplicationText(
 <activity android:name="com.google.ads.AdActivity"
  android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
)
'End of AdMob

basic4android 1.90
sdk platform api 8
admob version 1.36
GoogleAdMobAdsSdk.jar 6.0.1
:BangHead: :BangHead:
 

ssg

Well-Known Member
Licensed User
Longtime User
You'll need a higher API version to compile. Try using something like version 13 or something. I had same issue too, changed it to API 15 and it works fine.

Good luck!

Cheers!
-Bill
 
Upvote 0
Top