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"/>