2

Possible Duplicate:
Admob Error in Eclipse for android:configChanges

I'm trying to get AdMob to work in my Android app. I'm making a new question because I already followed the advice of previous threads.

I'm using Appcelerator Titanium.

  • Android API is set to 4.0.3 in Run Configurations inside Titanium.
  • Tool API Level: <tool-api-level>16</tool-api-level>
  • Activity: <activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
  • I've ran a Clean on my project

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 is causing this? Thank you.

Community
  • 1
  • 1
Simon Fredsted
  • 964
  • 2
  • 14
  • 26

1 Answers1

6

In the tag in AndroidManifest, use this:

<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17"/>

Of course, change the minSdkVersion to whatever you're using now.

Also, set the target to 17 on project.properties, then save, fix project properties and clean.

EDIT: Changed targetSdkVersion and target on project.properties from 15 to 17. Just try to target the latest version available.

Charlie-Blake
  • 10,832
  • 13
  • 55
  • 90