Giter Site home page Giter Site logo

docker-android's Introduction

GitHub Workflow Status Docker Pulls Docker Stars Docker Image Size (tag) License GitHub release GitHub Release Date CalVer Beevelop

Android 13 (API levels 28 - 34)

based on beevelop/java

  • Java 17.0.9
  • Gradle 4.4.1 (Groovy: 2.4.21)
  • Apache Maven 3.6.3
  • Ant 1.10.12

Pull, build or run this image

# pull the most recent tag / release
docker pull beevelop/android:v2023.12.1

# or run the image interactively
docker run --rm --name beevelop -it beevelop/android:v2023.12.1 bash

# or build the image from GitHub
docker build -t beevelop/android github.com/beevelop/docker-base

Or use it as a base image

FROM beevelop/android:v2023.12.1

# accepts all the Licenses (please read first)
RUN yes | sdkmanager --licenses --sdk_root=$ANDROID_SDK_ROOT

Licenses

The usage of the Android SDK requires you to accept the licenses

Maintenance


Beevelop's Docker Image Hierarchy

Use tags where possible, because

One does not simply use latest

docker-android's People

Contributors

beevelop avatar coffee2codenl avatar dependabot[bot] avatar madmuffin1 avatar miteshsavani810 avatar pedrofurtado avatar yyolk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

docker-android's Issues

Failed to install the following Android SDK packages as some licences have not been accepted.

Used with bitbucket pipeline

What went wrong:
A problem occurred configuring project ':react-native-reanimated'.

Failed to install the following Android SDK packages as some licences have not been accepted.
build-tools;29.0.2 Android SDK Build-Tools 29.0.2
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: /opt/android

Can you put an MIT license on this repo?

I would like to be able to put an MIT license on my usage of your Dockerfile. Or just say that you don't mind me licensing my version with that license I'll cite this github issue.

Maven missing

I don't seem to be able to run maven from this image. The whole folder seems to be missing, though there is a "maven-repo" folder.

> docker run -it beevelop/android ls /usr/share/maven
ls: cannot access /usr/share/maven: No such file or directory

Android Build Tools License not accepted

When executing "./gradlew assemble" via Gitlabs CI I get the following error in the end:

File /root/.android/repositories.cfg could not be loaded.
Checking the license for package Android SDK Build-Tools 24.0.3 in /opt/android/licenses
Warning: License for package Android SDK Build-Tools 24.0.3 not accepted.

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':project'.

You have not accepted the license agreements of the following SDK components:
[Android SDK Build-Tools 24.0.3].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html

Request for android-27

Since Android 8.1 Oreo (API 27) was released at 2017/12/5, chould this image include android-27 API?

What about support libraries?

Unfortunately I receive the error

You have not accepted the license agreements of the following SDK components:
  [SDK Patch Applier v4, Google Repository, Android Support Repository].
  Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
  Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html

Build failure due to license not accepted.

I recently hooked up my bitbucket pipeline with your dockerfile and it works really great. Thank you for the image. Recently I added google play service sdk to my project and suddenly the build appeared to be failing due to the above error. Can you help me fix this?

Here is the bitbucket-pipelines.yml file that I am using to build my project

image: beevelop/android:latest
pipelines:
  default:
    - step:
        script:
          - chmod +x gradlew
          - ./gradlew assembleDebug
          - ./gradlew test

And here is the error

Checking the license for package SDK Patch Applier v4 in /opt/android/licenses
Warning: License for package SDK Patch Applier v4 not accepted.
Checking the license for package Google Repository in /opt/android/licenses
Warning: License for package Google Repository not accepted.
Checking the license for package Android Support Repository in /opt/android/licenses
Warning: License for package Android Support Repository not accepted.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
   > A problem occurred configuring project ':sdk'.
      > You have not accepted the license agreements of the following SDK components:
        [SDK Patch Applier v4, Android Support Repository, Google Repository].
        Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
        Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED

Support API 32

Hi,

I got API 32 to work by adding the below to my Dockerfile derived from this one:

# Seems required for Gradle in Android 32
RUN apt-get update && apt-get install -y openjdk-11-jdk
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64

# Fix tools installation
RUN mv /opt/android/cmdline-tools /opt/android/tools && mkdir /opt/android/cmdline-tools && mv /opt/android/tools /opt/android/cmdline-tools
ENV PATH $PATH:$ANDROID_SDK_ROOT/cmdline-tools/tools/bin
RUN yes | sdkmanager --licenses

https://github.com/beevelop/docker-java would probably need to upgrade to Java 11.

Hopefully that helps a bit. :)

Missing ANDROID_HOME

Hey !
I was testing your cordova docker image, I used the nighty version.
I stumbled on this error message when I tried running cordova build android:

Failed to find 'ANDROID_HOME' environment variable. Try setting it manually.

I think that ANDROID_HOME is missing in your android Dockerfile with the same value that ANDROID_SDK_ROOT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.