Error String Types Not Allowed at Android:Configchanges in Manifest File

Error string types not allowed at android:configChanges in manifest file

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

screenSize & smallestScreenSize attributes are not available in SDK 10.They are been introduced in API level 13.

http://developer.android.com/guide/topics/manifest/activity-element.html#config

AndroidManifest.xml:47: error: Error: String types not allowed

Your minSdkVersion should be 13 .

Set this .I hope it will works .

For details please check below Links .

Error string types not allowed at android:configChanges in manifest file

"Error: String types not allowed (at 'configChanges' with value 'keyboard|keyboardHidden| orien"... in AndroidManifest.xml

Error: String types not allowed (at 'configChanges' with value 'keyboard|keyboardHidden| orien... in AndroidManifest.xml

Configure your libgdx Android Manifest like this and specify both min and target sdk version:

<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="19" />

You can use API 5 as the minimum android version as this is what libgdx still supports. Don't get confused about the meaning of the target sdk version: this basically means that you have tested it against latest android version, it doesn't mean that it won't run on previous versions, because you have specified a min sdk before. Rule of thumb: put min-sdk as low as possible and target-sdk as high as possible.

Configuring it that way your game should still run in old devices and using configChanges like this will work as well:

 android:configChanges="keyboard|keyboardHidden|orientation|screenSize"

I have just recently launched a game with configurations like this and works like a charm even on Gingerbread ;-)

Error:(121, 36) String types not allowed (at 'configChanges'

android:configChanges="screenSize|smallestScreenSize"

These attributes were introduced in API level 13, so make sure your minSdkVersion is equal to 13 or higher. The same applies to your compileSdkVersion.

See also: Error string types not allowed at android:configChanges in manifest file

android admob integration issue - string types not allowed

I had the same problem. I will tell you what I did.

right click on the project folder in eclipse

  • -properties
  • -choose android
  • -choose firmware 3.2 or higher

and then use this in the manifest

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

thats all



Related Topics



Leave a reply



Submit