为 kitkat 构建 phonegap

phonegap build for kitkat

我制作了一个 phonegap 应用程序,它适用于除我的 运行s KitKat 平板电脑以外的所有其他设备(应用程序安装但显示空白屏幕而不是内容)。我检查过这是否是平板电脑的问题,但它似乎是 android 版本,因为完全相同的应用程序构建在另一台平板电脑上运行 运行ning 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 构建我的应用程序。

提前致谢

我设法使 google chrome 远程设备调试器正常工作,但这是我的代码中的一个错误:我使用 let 而不是 var,而 KitKat 无法识别 let。

我将所有 let 声明更改为 var,现在它可以完美运行了。