This question already has an answer here:
error: Error: String types not allowed (at 'configChanges' with value
'keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize').
Here is all my relevant code.
In the manifest:
android:minSdkVersion="8"
android:targetSdkVersion="13"
android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout
|uiMode|screenSize|smallestScreenSize"/>
SOLVED!!! The problem was the break in the tags on configChanges. They needed to be all on one line together. Do not split the line for readability, leave it together.
I had this problem, but I was building my app with api 8. I also had api 13 as minimum sdk version. This is how to get it working: right click on your project>properties>android>choose android 3.2 or higher. This worked for me
Even if your target is 13, I guess this will not work on devices with api less than 13 because the changed value is not just a
TAG
in the manifest, but it is aVALUE
of aTAG
. Therefore, the system will parse these values regardless of its api and will throw an exception when it finds an unknownVALUE
.To solve this, you will have to build the project twice: for api < 13 and for api >=13.
Correct me if I am mistaken (: