# | |
# Build configuration for Circle CI | |
# | |
general: | |
artifacts: | |
- /home/ubuntu/your-app-name/app/build/outputs/apk/ | |
machine: | |
environment: | |
ANDROID_HOME: /usr/local/android-sdk-linux | |
dependencies: | |
override: | |
- echo y | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-19.1.0,android-19,extra-google-m2repository,extra-google-google_play_services,extra-android-support | |
- ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies | |
test: | |
override: | |
- (./gradlew assemble): | |
timeout: 360 |
# | |
# Build configuration for Circle CI | |
# | |
general: | |
artifacts: | |
- /home/ubuntu/your-app-name/app/build/outputs/apk/ | |
machine: | |
environment: | |
ANDROID_HOME: /usr/local/android-sdk-linux | |
dependencies: | |
override: | |
- echo y | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-21.1.2,android-21,extra-google-m2repository,extra-google-google_play_services,extra-android-support | |
- ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies | |
test: | |
override: | |
- (./gradlew assemble): | |
timeout: 360 |
This comment has been minimized.
This comment has been minimized.
Thank you, it works! |
This comment has been minimized.
This comment has been minimized.
If you get this error on your build: > Buildtools 24.0.2 requires Java 1.8 or above. Current JDK version is 1.7. just add:
under the machine block. It will look like the following:
Took the info from here: Thanks Donn for sharing the sample circle.yml file! |
This comment has been minimized.
This comment has been minimized.
I always failed with this issue Output: ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies returned exit code 126 Action failed: ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies |
This comment has been minimized.
This comment has been minimized.
@derohimat add following in your
|
This comment has been minimized.
This comment has been minimized.
Never mind, there was a typo |
This comment has been minimized.
This comment has been minimized.
I have this
and I get the following error
What am I missing? |
This comment has been minimized.
This comment has been minimized.
@bolorundurowb there are different licenses that need to be accepted so you need to group your packages according to their license.
I also noticed that you have |
This comment has been minimized.
This comment has been minimized.
hi ,i'm new to CircleCi , is their any way to output the .apk as artifact .I have tried the following line in .yml file and the output is : No artifact file found at location |
This comment has been minimized.
Thank you! I finally be able to run my tests on CircleCI, however, I wondering that do we have to update android sdk every time?
- echo y | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-21.1.2,android-21,extra-google-m2repository,extra-google-google_play_services,extra-android-support