【问题标题】:How do target an API level for android from config.xml for phonegap?如何从 config.xml 为 phonegap 定位 android 的 API 级别?
【发布时间】:2018-09-01 16:18:28
【问题描述】:

我曾经使用基本 config.xml 文件为 play store 的 phonegap 构建应用程序,直到最近我的应用程序被拒绝,因为它们没有针对 API 级别 26。我做了一些研究并尝试了一些 solutions 和这样做:

<platform name="android">
    <allow-intent href="market:*" />
    <preference name="android-minSdkVersion" value="26" />
    <preference name="android-targetSdkVersion" value="26" />
</platform>

情况越来越糟,我在调试模式下的应用程序(在 phonegap 构建上进行 xompilation 之后)甚至无法在 android 上解析。

我同样阅读了几个解决方案,但似乎都没有。我真的只是想知道我应该在 config.xml 文件中包含什么,以便我可以重新开始。

【问题讨论】:

    标签: android phonegap-build google-developers-console


    【解决方案1】:

    我的 config.xml 文件有这两行,但它们放在外面

    &lt;platform name="android"&gt;&lt;/platform&gt;

    以下是我使用的价值观,我的应用同时在 Apple 和 Google 应用商店上架:

    <preference name="android-targetSdkVersion" value="26" />
    <preference name="android-minSdkVersion" value="14" />
    

    如果您想要我的完整 config.xml 文件的示例,请告诉我! :)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-04-16
      • 2011-09-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-22
      • 2013-09-07
      相关资源
      最近更新 更多