1
我试图与特拉维斯CI和Codecov建设项目,但是当我建立与特拉维斯CI我得到这个错误特拉维斯CI构建失败./gradlew组装
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 31.202 secs
The command "eval ./gradlew assemble" failed. Retrying, 2 of 3.
这是我.travis.yml
language: java
jdk:
- oraclejdk8
sudo: required
before_install:
- chmod +x gradlew
script:
- ./gradlew clean build -i --continue
after_success:
- bash <(curl -s https://codecov.io/bash) -t myToken
我这个读了很多关于before_install
但它不会改变任何东西......
*** SDK位置。使用sdk.dir在local.properties文件或ANDROID_HOME环境变量中定义位置。*** – Selvin
请不要downvote ...我已经尝试过但没有任何更改.. –