phonegap build for kitkat
问题描述:
我已经制作了一个PhoneGap应用程序,除了运行KitKat的平板电脑(应用程序安装,但显示一个空白的白色屏幕,而不是内容)之外的所有其他设备上都可以运行。我检查,看看这是否是它是一个平板电脑的问题,但它似乎是android的版本完全一样的应用程序建立适用于平板电脑的另一个运行Android棒棒糖......phonegap build for kitkat
这是我的配置文件中的代码,有什么我需要添加或我应该删除,以便它将在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构建我的应用程序。
在此先感谢
答
我设法让谷歌Chrome远程设备调试工作,这是在我的代码中的错误:我已经使用让代替var和奇巧不承认让。
我将所有的声明都改为var,现在它完美地工作。