GithubHelp home page GithubHelp logo

renfeng / android-repository Goto Github PK

View Code? Open in Web Editor NEW
90.0 9.0 28.0 2.44 MB

Make a mirror of Android SDK Update Sites - works for both standalone and Android Studio built-in SDK Managers

License: Apache License 2.0

Shell 100.00%

android-repository's Introduction

android/repository

It mirrors Android SDKs, which Android Studio built-in and standalone SDK Manager both can download from. Ideal for a crowded place, e.g. classroom, Study Jams, and Code labs.

Tested on

  • Linux Mint Rebecca (17.1, Ubuntu 14.04),
  • Windows 7 64bit
  • macOS Sierra (10.12.6)

Prerequisites

  • 127 GB storage on your disk, as of 2020-12-30
  • wget

Server setup

Notes

  • Files will be downloaded to your working directory, which can be different than
  • The directory the project is cloned into, referred as ${ANDROID_REPOSITORY_HOME}.
  • The mirror can be hosted with an HTTP server. Sample configurations of Apache HTTPd and nginx will be printed at the end.
${ANDROID_REPOSITORY_HOME}/download2.sh

By default, it downloads from https://dl.google.com. To download from some mirror, set environment variable, DL_HOST. e.g.

export DL_HOST=https://some-mirror

See also Known Mirrors.

Client setup

Set environment variable, SDK_TEST_BASE_URL, and launch Android Studio e.g. on macOS

export SDK_TEST_BASE_URL=http://your-mirror/${DL_PATH}/
open -a 'Android Studio'

android-repository's People

Contributors

abioteau avatar renfeng avatar rogerhu 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  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  avatar  avatar  avatar

android-repository's Issues

it seems that some items cannot download

image

for example, support library just downloaded 2 package, and build-tools cannot download older versions such as build-tools_r16,17,18, etc.

how can i download full packages?

studyjams.dushu.hu files cand download

Hi ...
in the issue #6 i asked about my problem ...
a2cb8204-5182-11e5-94e3-67a75dc5c20f
you kindly answered i must edit etc/hosts ...
could tell me exactly how and what must be edited text
thank you

I wan to download NDK CMmake LLDB

I want to download and install NDK CMmake LLDB in sdk manager. can you add theses xml files in script?
android studio 2.2 had installed these package.

How to use SDK Manager instead of the old way?

https://github.com/renfeng/android-repository/blob/master/android/studio/template.html

I can do:
wget https://dl-ssl.google.com/android/repository/sdk-tools-darwin-4333796.zip

But what is this line do? The android/studio URL points to the template web page -- how does the nested wget work?

wget http://downloads.myhost.com/`wget http://downloads.myhost.com/android/studio/ -O - | perl -nle "print $& if m{android/repository/sdk-tools-darwin-\d+.zip}"

Also the extra M2 repositories are not needed anymore given Google's new Maven repo at maven.google.com (or google() in Gradle):

tools/bin/sdkmanager --no_https --proxy=http --proxy_host=downloads.codepath.com --proxy_port=80 "patcher;v4" "extras;android;m2repository" "extras;google;m2repository" emulator "build-tools;25.0.3" "platforms;android-25" platform-tools tools "sources;android-25"

I also don't think the patcher stuff either for API 27?

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.