我正在使用带有 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"
}
}
}