android – gradle命令:crashlyticsUploadDistributionRelease with flavor

前端之家收集整理的这篇文章主要介绍了android – gradle命令:crashlyticsUploadDistributionRelease with flavor前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试使用以下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"
    }

解决方法

如果您看到此错误

Project is inactive.

这意味着您的项目尚未在Fabric后端完全激活.构建应用程序后,请务必同时运行该应用程序,这将完成激活,以便您可以分发您的应用程序.

原文链接:https://www.f2er.com/android/313991.html

猜你在找的Android相关文章