【问题标题】:Crashlytics could not find the manifest with fabric.propertiesCrashlytics 找不到带有 fabric.properties 的清单
【发布时间】:2016-05-24 03:02:36
【问题描述】:

我正在使用类路径 'io.fabric.tools:gradle:1.+' 并且在我用于结构插件的模块中有一个 fabric.properties。

当我运行 gradlew crashlyticsUploadDistributionProdStaging 时,我得到:

`Crashlytics could not find the manifest`
com.crashlytics.tools.android.project.ManifestData$ManifestIOException: Crashlytics could not find the manifest. Not found at .../app/build/intermediates/manifests/full/prod/staging/AndroidManifest.xml

为什么?

【问题讨论】:

    标签: android crashlytics-android


    【解决方案1】:

    在我用正确的数据更新fabric.properties 并拆分命令后它起作用了:

    gradlew assembleProdStaging 
    gradlew crashlyticsUploadDistributionProdStaging 
    

    没有错误仍然出现。

    【讨论】:

    • 对我来说,在将命令分成两行后工作,就像你说的那样。
    • 我在直接从 jenkins 上传 apk 时也遇到了类似的问题。分成两行后,它起作用了。
    【解决方案2】:

    遇到同样的问题。

    在 gradle 中设置清单路径解决了这个问题:

    crashlytics {
        manifestPath = "$buildDir/PATH_TO_YOUR_MANIFEST/AndroidManifest.xml"
    }
    

    【讨论】:

    • 在我的情况下,我不想在清单中包含密钥,因为它是开源的。
    • 这可能会破坏您上传的 APK,因为它的版本代码为 0。请参阅:twittercommunity.com/t/…
    • 哪个 gradle ?项目或应用
    • PATH_TO_YOUR_MANIFEST 例子,它可以像?
    猜你喜欢
    • 1970-01-01
    • 2018-05-12
    • 2019-06-26
    • 1970-01-01
    • 2021-02-15
    • 1970-01-01
    • 2018-06-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多