Crashlytics插件不上传映射文件

时间:2017-11-24 19:42:26

标签: android crashlytics android-instant-apps

我重构了我的项目,将功能分离到库模块中,以支持Instant Apps。 Everthing工作得很好,但是我无法在Crashlytics的问题详细信息中看到反混淆的堆栈跟踪,就像我之前看到的那样。我正在使用Fabric gradle插件v1.24.5,我在基本模块gradle文件中有以下行:

apply plugin: 'com.android.feature'

我错过了什么吗?

编辑:

感谢@Alexizamerican,我在“〜/ Library / Caches / com.crashlytics / com.crashlytics.tools /”中找到了Crashlytics的日志,并且没有任何对映射文件的引用:

2017-11-28 09:30:47.855 [DEBUG] (Task worker for ':') com.crashlytics  - Invoked Crashlytics Developer Tools with arguments: 
-injectableManifest true
-androidBaseManifest /Users/sirkuryaki/AndroidStudioProjects/Yop/app/src/main/AndroidManifest.xml
-buildEvent true
-androidManifest /Users/sirkuryaki/AndroidStudioProjects/Yop/app/build/intermediates/manifests/aapt/prod/release/AndroidManifest.xml
-apiSecret **XXX**
-generateResourceFile true
-tool io.fabric.tools.gradle
-version 1.24.5
-properties /Users/sirkuryaki/AndroidStudioProjects/Yop/app/crashlytics.properties
-twitterPluginId **XXX**
-buildId **XXX**
-targetResValueDir /Users/sirkuryaki/AndroidStudioProjects/Yop/app/build/generated/fabric/res/prod/release
-projectPath /Users/sirkuryaki/AndroidStudioProjects/Yop/app
-androidRes /Users/sirkuryaki/AndroidStudioProjects/Yop/app/src/main/res
-androidAssets /Users/sirkuryaki/AndroidStudioProjects/Yop/app/build/intermediates/bundles/prodRelease/assets
2017-11-28 09:30:47.939 [DEBUG] (Task worker for ':') com.crashlytics  - apiKey is **XXX**
2017-11-28 09:30:47.997 [DEBUG] (Task worker for ':') com.crashlytics  - Generating crashlytics resources
2017-11-28 09:30:47.998 [DEBUG] (Task worker for ':') com.crashlytics  - Generating build info into assets folder: /Users/sirkuryaki/AndroidStudioProjects/Yop/app/build/intermediates/bundles/prodRelease/assets
2017-11-28 09:30:48.001 [DEBUG] (Task worker for ':') com.crashlytics  - Updating build properties at: /Users/sirkuryaki/AndroidStudioProjects/Yop/app/build/intermediates/bundles/prodRelease/assets/crashlytics-build.properties
2017-11-28 09:30:48.004 [DEBUG] (Task worker for ':') com.crashlytics  - Set build id to **XXX**
2017-11-28 09:30:48.014 [DEBUG] (Build Event Notification) com.crashlytics  - Build Event: **XXX** ID:**XXX** ApiKey:**XXX** Tool:io.fabric.tools.gradle 1.24.5 Base Package Name:com.yopapp.yop Twitter Client Application Id:**XXX** API Secret Null? false Extra Details:[null]
2017-11-28 09:30:49.982 [DEBUG] (Build Event Notification) com.crashlytics  - REQUEST: https://api.crashlytics.com/spi/v1/platforms/android/apps/com.yopapp.yop/built
2017-11-28 09:30:56.789 [DEBUG] (Build Event Notification) com.crashlytics  - POST response: [reqId=**XXX**] 200

但如果我查看以前的版本,我可以看到以下几行:

-storeDeobs /Users/sirkuryaki/AndroidStudioProjects/Yop/app/build/outputs/mapping/prod/release/mapping.txt
2017-10-02 13:14:45.416 [DEBUG] (Daemon worker Thread 4) com.crashlytics  - Caching deobfuscation file
2017-10-02 13:14:45.417 [DEBUG] (Daemon worker Thread 4) com.crashlytics  - Saving deobfuscation file: /Users/sirkuryaki/AndroidStudioProjects/Yop/app/build/outputs/mapping/prod/release/mapping.txt
2017-10-02 13:14:45.417 [DEBUG] (Daemon worker Thread 4) com.crashlytics  - Crashlytics is caching deobs file at /Users/sirkuryaki/Library/Caches/com.crashlytics/com.crashlytics.tools/app-**XXX**/deobs/**XXX**zip

2 个答案:

答案 0 :(得分:3)

我找到了根本原因,如果您使用Gradle插件3.0+,则结构插件可能无法自动上传。他们正在发布修复此问题的新版本(版本1.24.0)。您可以查看发布日志here

答案 1 :(得分:1)

结帐Set Up a Library Subproject     用于库设置说明。