我正在尝试使用以下Gradle命令上传包含风味的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 - 将 APK 上传到 Crashlytics 进行分发。
为什么我无法分发我的应用程序?
我的 build.gradle
文件:
productFlavors {
dev {
applicationId "mypackagename.dev"
}
alpha {
applicationId "mypackagename.alpha"
}
beta {
applicationId "mypackagename.beta"
}
product {
applicationId "mypackagename"
}