gpt4 book ai didi

android - FirebaseAppDistribution : Missing app id in the appDistributionUpload gradle command

转载 作者:行者123 更新时间:2023-12-04 23:46:47 28 4
gpt4 key购买 nike

我正在使用带有 Gradle 插件的 Firebase App Distribution。
当我尝试运行 appDistributionUploadDebug 命令时,我收到错误:

Getting appId from output of google services plugin

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:appDistributionUploadDebug'.
> Missing app id

我将插件包含在 build.gradle 文件中

   dependencies {
classpath 'com.google.firebase:firebase-appdistribution-gradle:1.2.0'
}

然后我添加了配置:

apply plugin: 'com.android.application'
apply plugin: 'com.google.firebase.appdistribution'

android {
//...
debug {
firebaseAppDistribution {
serviceAccountCredentials = "/path/to/your-service-account-key.json"
releaseNotesFile="/path/to/releasenotes.txt"
testers="email@example.com"
}
}
}

最佳答案

如果您在项目中不使用 google services gradle 插件,您必须添加 appId您的 configuration 中的属性(property).

类似:

            firebaseAppDistribution {
// Firebase App Distribution setup
appId = "...." //<-- add your appID

serviceAccountCredentials = "/path/to/your-service-account-key.json"
releaseNotesFile="/path/to/releasenotes.txt"
testers="email@example.com"
}

您可以在 google-services.json 文件中找到 appId

{
...
"client": [
{
"client_info": {
"mobilesdk_app_id": "...",//<-- YOU NEED THIS APP_ID
"android_client_info": {
"package_name": "..."
}
},

...
}

或在项目设置页面上的 Firebase 控制台中 -> 常规选项卡。

关于android - FirebaseAppDistribution : Missing app id in the appDistributionUpload gradle command,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58865939/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com