我用谷歌搜索了一个活动元素需要android:configChanges="orientation|screenSize|keyboardHidden"
PhoneGap 的值来刷新屏幕尺寸。但随后 Eclipse 吐出有一个错误:error: Error: String types not allowed (at 'configChanges' with value 'orientation|screenSize|keyboardHidden').
. 那么我的清单配置有什么问题?这是我的整个 Android 清单配置:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.agilitus"
android:versionCode="1"
android:versionName="1.0" android:installLocation="internalOnly">
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:resizeable="true"
android:anyDensity="true"
/>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="16" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" android:debuggable="true" android:testOnly="false">
<activity
android:name=".IndexActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:configChanges="orientation|screenSize|keyboardHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
如您所见,我安装了 3.2 以上的所有版本
仍然出现错误As you can see I installed all versions above 3.2