Crashlytics无法使用fabric.properties找到清单

Dan*_*ico 10 android crashlytics-android

我使用classpath'io.fabric.tools:gradle:1.+'并在我用于fabric插件的模块中有一个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
Run Code Online (Sandbox Code Playgroud)

为什么?

Dan*_*ico 21

在我fabric.properties使用正确的数据更新并拆分命令后,它工作正常:

gradlew assembleProdStaging 
gradlew crashlyticsUploadDistributionProdStaging 
Run Code Online (Sandbox Code Playgroud)

没有它,错误仍然出现.

  • 对我来说,在将命令分成两行后就可以了,就像你说的那样. (3认同)

use*_*938 5

有同样的问题。

在gradle中设置清单清单路径可以解决此问题:

crashlytics {
    manifestPath = "$buildDir/PATH_TO_YOUR_MANIFEST/AndroidManifest.xml"
}
Run Code Online (Sandbox Code Playgroud)