Dave's Brain

Browse - Programming Tips - Android Studio gives error about string types in android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" how can I fix it.

Date: 2016sep11
OS: Android

Q.  Android Studio gives error about string types in android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" how can I fix it.

A.  screenSize|smallestScreenSize were added in level 10 so you could change your level to that or higher.

I tired this in my app's manifest and it compiled,
but then ads didn't run:

<activity android:name="com.google.android.gms.ads.AdActivity" tools:replace="android:configChanges" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode"/>

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.