将免安装应用上传到 Google Play 管理中心失败并显示通用消息

Uploading instant app to Google Play Console fails with generic message

我正在努力将重构的应用程序添加到 Google Play 控制台中的预发布频道。当我尝试上传 zip 文件时出现错误 "Upload failed. We could not save your changes. Please try again." 我已经为此工作了很多天,感觉我 运行 没有其他选择可以尝试。有没有其他人经历过与即时应用程序特别相关的问题?我的应用有 base_feature、main_feature 和 detail_feature。

我完成了以下内容:

我不知道是什么导致了这个错误。通常控制台会输出上传失败的原因。在完整上传的 APK 和免安装应用 APK 之间是否有什么特别需要匹配的?希望有一个我忽略的简单解决方案。任何帮助将不胜感激!

编辑

基地:

dependencies {
    api(...)
    api(...)
    api(...)
    api(...)

    feature project(':home')
    feature project(':detail')
    application project(':apk')
}

家:

dependencies {
    api project(':base')
    api(...)
}

详情:

dependencies {
    api project(':base')
    api(...)
}

免安装应用程序:

dependencies {
    implementation project(':base')
    implementation project(':home')
    implementation project(':detail')
}

apk:

dependencies {
    implementation project(':base')
    implementation project(':home')
    implementation project(':detail')
}

我能够通过将所有外部库引用 (API/implementation) 移动到基本功能来解决我的问题。似乎每个功能都无法托管仅在该特定功能中使用的库。

希望在这方面可以有所改进,既可以在控制台中更好地指示构建的问题,也可以通过构建即时应用程序的方式来更好地支持模块化和减小 APK 大小。