javiersantos / android-ci Goto Github PK
View Code? Open in Web Editor NEWA docker image for building Android apps. Supports multiple SDK Build Tools.
License: MIT License
A docker image for building Android apps. Supports multiple SDK Build Tools.
License: MIT License
I try to run the emulator with your image
$ echo y | /sdk/tools/bin/sdkmanager update sdk
but I am getting the error
$ echo y | /sdk/tools/bin/sdkmanager update sdk
Loading package information...
Loading local repository...
[ ] 3% Loading local repository...
[ ] 3% Fetch remote repository...
[ ] 3% Fetch remote repository...
[= ] 3% Fetch remote repository...
[= ] 3% Fetch remote repository...
[= ] 3% Fetch remote repository...
[= ] 3% Fetch remote repository...
[= ] 3% Fetch remote repository...
[= ] 3% Fetch remote repository...
[= ] 3% Fetch remote repository...
[= ] 3% Fetch remote repository...
[= ] 3% Fetch remote repository...
[= ] 3% Fetch remote repository...
[= ] 3% Fetch remote repository...
[= ] 4% Fetch remote repository...
[= ] 4% Fetch remote repository...
[= ] 4% Fetch remote repository...
[= ] 4% Fetch remote repository...
[= ] 4% Fetch remote repository...
[= ] 4% Fetch remote repository...
[= ] 4% Fetch remote repository...
[= ] 4% Fetch remote repository...
[== ] 5% Fetch remote repository...
[== ] 6% Fetch remote repository...
[== ] 6% Computing updates...
[=== ] 8% Computing updates...
[=== ] 8% Computing updates...
[=== ] 10% Computing updates...
**Warning: Failed to find package update**
[=== ] 10% Computing updates...
ERROR: Job failed: exit code 1
Do you have any idea how to run the emulator on your image? Or what the error is?
I am running with 28.0.2
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2/3.2.0-4818971/aapt2-3.2.0-4818971-linux.jar
:app:splitsDiscoveryTaskDebug
:app:processDebugResources FAILED
FAILURE: Build failed with an exception.
Android resource linking failed
Output: /builds/mid-android/mid-android/app/src/main/res/layout/activity_forgot_password.xml:12: error: resource font/proximanovasemibold (aka com.myidealdoctor.mid:font/proximanovasemibold) not found.
error: failed linking file resources.
Command: /builds/mid-android/mid-android/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.0-4818971-linux.jar/266408780c395b064f93b30e44a5071d/aapt2-3.2.0-4818971-linux/aapt2 link -I
/sdk/platforms/android-28/android.jar
--manifest
/builds/mid-android/mid-android/app/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml
-o
/builds/mid-android/mid-android/app/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_
-R
@/builds/mid-android/mid-android/app/build/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
/builds/mid-android/mid-android/app/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r
--custom-package
com.myidealdoctor.mid
-0
apk
--output-text-symbols
/builds/mid-android/mid-android/app/build/intermediates/symbols/debug/R.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.0-4818971-linux Daemon #0
Output: /builds/mid-android/mid-android/app/src/main/res/layout/activity_forgot_password.xml:12: AAPT: error: resource font/proximanovasemibold (aka com.myidealdoctor.mid:font/proximanovasemibold) not found.
error: failed linking file resources.
Command: /builds/mid-android/mid-android/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.0-4818971-linux.jar/266408780c395b064f93b30e44a5071d/aapt2-3.2.0-4818971-linux/aapt2 link -I
/sdk/platforms/android-28/android.jar
--manifest
/builds/mid-android/mid-android/app/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml
-o
/builds/mid-android/mid-android/app/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_
-R
@/builds/mid-android/mid-android/app/build/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
/builds/mid-android/mid-android/app/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r
--custom-package
com.myidealdoctor.mid
-0
apk
--output-text-symbols
/builds/mid-android/mid-android/app/build/intermediates/symbols/debug/R.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.0-4818971-linux Daemon #0
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 1m 40s
17 actionable tasks: 17 executed
ERROR: Job failed: exit code 1
Is it possible to include NDK ?
I can see after building the docker image that there is a gradlew file in path /sdk/extras/google/google_play_services/samples/unified/ActivityDemo/gradlew
. Is this supposed to be the correct path for the official gradlew wrapper?
After calling this file, a directory /root/.gradle
exists, but there is no path environment set to the gradle script inside. How can gradle be called from within the docker container ?
Weirdly enough, some builds were fine with this image, but then since yesterday I am getting these errors. Any clue?
Starting a Gradle Daemon (subsequent builds will be faster)
> Configure project :app
Checking the license for package Android SDK Platform 28 in /sdk/licenses
Warning: License for package Android SDK Platform 28 not accepted.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
platforms;android-28 Android SDK Platform 28
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html
Using Android SDK: /sdk
* 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.
Given this is designed for CI, it would be good if it could be based on a smaller image (e.g. alpine
) rather than full Ubuntu. Reduced image size should result in faster CI runs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.