Cannot get admob working: configChanges error

Posted by Jack Commonw on Stack Overflow See other posts from Stack Overflow or by Jack Commonw
Published on 2012-12-04T17:03:02Z Indexed on 2012/12/08 17:04 UTC
Read the original article Hit count: 249

Filed under:
|

I know there are some topics about it, but the reason I start this one is I appear not to be able to solve it with solutions given. I want to add admob to my project. I downloaded GoogleAdMobAdsSdk-6.2.1 and added it to my project. When I startup it says You must have AdActivity declared in AndroidManifest with configChanges. So solution found, set it to:

android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"

and

<uses-sdk
        android:minSdkVersion="3"
        android:targetSdkVersion="15" />

Clean it, try again. But now I get an error saying following although my targetSdkVersion is set to be min 12, I really don't know why I am still getting this error:

String types not allowed (at 'configChanges' with value 'keyboard|keyboardHidden|orientation|
 screenLayout|uiMode|screenSize|smallestScreenSize')

Any ideas on this? There might be another setting wrong which I looked over?

© Stack Overflow or respective owner

Related posts about android

Related posts about admob