我做什么:
> export FIREBASE_TOKEN=***
> export GOOGLE_APPLICATION_CREDENTIALS=/home/MyProject/app/serviceCredentialsFile.json
> ./gradlew --stop
> ./gradlew assembleDebug appDistributionUploadDebug
结果:
> Task :app:appDistributionUploadDebug FAILED
Found APK at /home/MyProject/app/build/outputs/apk/debug/debug.apk.
Uploading APK to Firebase App Distribution...
Getting appId from output of google services plugin
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:appDistributionUploadDebug'.
> App Distribution failed to fetch app information: [403] The caller does not have permission
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 7s
190 actionable tasks: 2 executed, 188 up-to-date
解决方法