Admob with Android: Unable to parse android: configChanges in manifest

I am trying to add ads to my Android app using Admob but hit a brick wall. Admob says this requires the following from logcat

 E/Ads (26043): The android:configChanges value of the com.google.ads.AdActivity must include uiMode. E/Ads (26043): The android:configChanges value of the com.google.ads.AdActivity must include screenSize. E/Ads (26043): The android:configChanges value of the com.google.ads.AdActivity must include smallestScreenSize. 

However, the Android SDK in Eclipse on Ubuntu will not be able to parse the following:

 <activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/> 

When I go to activity and select an attribute in the manifest, the last three elements show "Unrecognized flag".

I want to add ads on Android 1.6 (API level 4), but these attributes do not exist until the API level in adolescence. How to humble it?

+6
source share
1 answer

AdMob SDK v4.3.1 was released late at night. The SDK requires these new configurations to optimize tablets, but these configChanges are only available in Honeycomb and above.

You will need to download the Android SDK version 3.2 or higher, and then set target=13 or higher in the project.properties file to compile with the new version of the SDK. It will still support Android 1.5 devices and above, and this can be controlled by minSdkVersion in your manifest.

+6
source

Source: https://habr.com/ru/post/900014/


All Articles