【问题标题】:Instant App Uploading APK is failedInstant App Uploading APK 失败
【发布时间】:2017-06-20 09:39:59
【问题描述】:

我正在尝试将我的 APK 添加到 Play 商店,但它给出了一个错误:

上传失败 您的免安装应用 APK 包含一个不存在或未包含的 APK 名称“productdetail”。

知道为什么会这样吗?

感谢您的帮助!

【问题讨论】:

  • 您的应用中的“productdetail”是什么?
  • 我的功能模块@thorin86

标签: android android-instant-apps


【解决方案1】:

您可以在这里查看几件事:

  • 确保您上传的是 ZIP 文件,其中包含 productdetail APK。您需要一次上传所有 APK。
  • 在您的基本模块中,您的build.gradle 文件的dependencies 部分中有feature project(':productdetail')。 (如果产品详细信息不在项目的根文件夹中,请修改相对项目路径)
  • 在您的即时应用项目级build.gradle(即应用了com.android.instantapp 插件的那个)中,您的dependencies 部分中有implementation project(':productdetail')

项目结构的详细解释可以在这里找到:https://developer.android.com/topic/instant-apps/getting-started/structure.html

我还建议您查看来自 https://developer.android.com/topic/instant-apps/samples.html 的 Hello World 代码示例,并将您的 build.gradle 与示例进行比较,以发现构建文件中的错误。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-11-11
    • 2023-03-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多