我正在尝试用Travis构建我的Android项目,目前我收到错误:
A problem occurred configuring project ':app'.
> You have not accepted the license agreements of the following SDK
components:
[Android SDK Build-Tools 27.0.1].
Run Code Online (Sandbox Code Playgroud)
我不知道怎么样,但昨天我可以解决问题:
before_install:
- yes | sdkmanager "platforms;android-27"
Run Code Online (Sandbox Code Playgroud)
但现在它对我没有帮助.我会很感激任何建议.
这是构建URL https://travis-ci.org/madsunrise/luna-mobile/jobs/325034903,我也把travis.yml放在下面
sudo: required
language: android
jdk: oraclejdk8
notifications:
email:
recipients:
- rudnev.vanya@gmail.com
on_success: change
on_failure: always
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/
before_install:
- yes | sdkmanager "platforms;android-27"
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
env:
global:
- ANDROID_API=27
- ANDROID_BUILD_TOOLS=27.0.2
android: …Run Code Online (Sandbox Code Playgroud) A 有一个包含大量依赖项的大项目,包括 Firebase。
现在com.google.firebase:firebase-messaging版本为17.3.3。我想将其更新为20.2.1。
应用程序启动后出现下一个错误:
Firebase-Installations: Error when communicating with the Firebase Installations server API. HTTP response: [403 Forbidden: {
"error": {
"code": 403,
"message": "Requests from this Android client application com.example are blocked.",
"status": "PERMISSION_DENIED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.Help",
"links": [
{
"description": "Google developer console API key",
"url": "https://console.developers.google.com/project/61947752567/apiui/credential"
}
]
}
]
}
}
]
Firebase Installations can not communicate with Firebase server APIs due to invalid configuration. Please update …Run Code Online (Sandbox Code Playgroud) android firebase firebase-cloud-messaging android-app-bundle