我正在尝试使用以下gradle命令上传带有flavor的apk:
./gradlew assembleDevRelease crashlyticsUploadDistributionDevRelease
但是,它失败了以下异常日志:
Caused by: com.crashlytics.tools.android.exception.DistributionException: Crashlytics halted compilation because it had a problem uploading the distribution.Project dev is inactive at com.crashlytics.tools.android.DistributionTasks.uploadDistribution(DistributionTasks.java:91) at com.crashlytics.tools.android.DeveloperTools.processProperties(DeveloperTools.java:583) ... 58 more
看起来我的Fabric帐户上没有包名匹配,但是当我执行以下命令时,它会找到它:
./gradlew tasks –all
app:crashlyticsUploadDistributionDevRelease – Uploads an APK to Crashlytics for distribution.
为什么我无法分发我的应用程序?
我的build.gradle文件:
productFlavors { dev { applicationId "mypackagename.dev" } alpha { applicationId "mypackagename.alpha" } beta { applicationId "mypackagename.beta" } product { applicationId "mypackagename" }