我制作了一个 phonegap 应用程序,该应用程序可在所有其他设备上运行,除了运行 KitKat 的平板电脑(该应用程序安装但显示空白屏幕而不是内容)。我检查了这是否是平板电脑的问题,但它似乎是 android 版本,因为完全相同的应用程序构建适用于另一台运行 android lollipop 的平板电脑......
这是我的配置文件中的代码,是否需要添加或删除其他内容才能在 KitKat 平板电脑上正确运行?
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.phonegap.helloworld"
version="1.0.0"
xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
xmlns:android = "http://schemas.android.com/apk/res/android">
<config-file platform="android" parent="/manifest" mode="merge">
<supports-screens
android:xlargeScreens="true"
android:largeScreens="true"
android:smallScreens="true"
android:requiresSmallestWidthDp="600"
/>
<uses-sdk android:minSdkVersion="19"
android:targetSdkVersion="19"/>
</config-file>
<name>My App</name>
<description>
Tablet App.
</description>
<content src="index.html"/>
<preference name="target-device" value="universal" />
<preference name="android-minSdkVersion" value="19" />
<preference name="android-targetSdkVersion" value="19"/>
<preference name="orientation" value="landscape" />
<access origin="*"/>
</widget>
我没有使用插件,而是使用 build.phonegap 来构建我的应用程序。
提前致谢