2016-02-12 45 views
5

找到清單使用classpath'io.fabric.tools:gradle:1.+'並且在我用於fabric插件的模塊中有一個fabric.properties。Crashlytics無法使用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 

爲什麼?

回答

17

它的工作我更新了fabric.properties用正確的數據後,分裂commannds:

gradlew assembleProdStaging 
gradlew crashlyticsUploadDistributionProdStaging 

如果沒有錯誤仍然會出現。

+3

對我來說,拆分後先後在兩行命令,就像你說的。 –

+0

我仍然有同樣的錯誤 – gleroyDroid

+1

我也有類似的問題,直接從jenkins上傳apk。分成兩行後,它工作。 – elhm

2

有同樣的問題。

設置在gradle這個mansifest路徑解決了這個問題:

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

在我的情況下,我不想在我的清單中有鑰匙,因爲它是開源的。 – Caipivara

+0

這可能會破壞你上傳的APK,因爲它有versionCode 0.請參閱:https://twittercommunity.com/t/beta-not-able-to-read-the-version-name-and-code/60240/20 –

相關問題