Android + Admob: Error: line types are not allowed (in 'configChanges' with value (etc.)

My previous question was closed by the moderator, so please read the following: Other threads do not solve the problem. I read them and tried everything.

I am trying to get AdMob to work in my Android app. I ask a new question because I have already adhered to the recommendations of previous threads.

  • I am using Appcelerator Titanium.

  • The Android API is set to 4.0.3 in Run Configurations inside Titanium.

  • I set <uses-sdk android:maxSdkVersion="15" android:minSdkVersion="15" android:targetSdkVersion="15" />

  • <android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>

  • I cleaned up my project

  • I set target=android-15 both default.properties and project.properties

Getting this error:

[ERROR] /Users/Path/build/android/AndroidManifest.xml:13: error: Error: String types not allowed (at 'configChanges' with value 'keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize').

What am I doing wrong / What causes this? Thanks.

+4
source share
1 answer

I had the same problem and could solve it by downloading the latest Admob SDK from Google: https://developers.google.com/mobile-ads-sdk/download

After downloading, go to the project folder> modules> ti.admob> (version number)> lib. Delete the current .jar file and replace it with the one found in the latest admob SDK.

+2
source

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


All Articles