Coder Social home page Coder Social logo

android-sdk-installer's People

Contributors

austynmahoney avatar passy avatar rkistner avatar sebv avatar tompson avatar xiaoxuetu 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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

android-sdk-installer's Issues

Travis fails randomly all the tests

Hey,
I'm trying to figure out what's the cause of all tests failing randomly on Travis every couple of builds with messages similar to

LoginFailTest > testLoginFailure[test(AVD) - 4.4.2] FAILED
junit.framework.AssertionFailedError: EditText is not found!
at com.robotium.solo.Waiter.waitForAndGetView(Waiter.java:540)

Seems like the screen is locked or dimmed.
I could reproduce it by running emulator on local machine and running gradle connectedAndroidTest without unlocking it.
That's why I have

before_script:
  - wait_for_emulator
  - adb shell input keyevent 82

in my .travis.yml. I didn't see this command in examples in your README.md, so I'm wondering if there is another way to make sure screen is on.
Have you ever encountered this problem? Thanks in advance.

Still useful

Just to let you know that, though travis now has an Android DSL, I still use your script and others might as well. I create a few java libraries that do some post compilation processing on android classes. Thus my project would not work with the Android DSL and I quite happy if your project get maintained ;)

https://github.com/stephanenicolas/injects/blob/master/README.md

Thx !

Accept all licenses

The current echo y | android update sdk ... approach only accepts the first license. This has the nice side-effect of preventing the install of the MIPS and Intel emulator images, but is not a very stable solution, and may break in the future. It also prevents the user from installing e.g. the Intel emulator image if he really wants to.

The following alternative has been suggested by @sebv, which accepts all the licenses:

( while [ 1 ]; do sleep 5; echo y; done ) | android update sdk ...

The problem currently is that it causes all emulator images to be installed with e.g. sysimg-17, which significantly increases the installation time.

To implement this, we therefore first need a way to filter out the emulator images that are installed.

"curl -3" not working after CVE-2014-3566 (POODLE)

Can't download WAIT_FOR_EMULATOR_URL and ACCEPT_LICENSES_URL from Github:

curl: (35) error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure
chmod: cannot access `/home/ubuntu/.android-sdk-installer/tools/wait_for_emulator': No such file or directory

curl: (35) error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure
chmod: cannot access `/home/ubuntu/.android-sdk-installer/tools/accept-licenses': No such file or directory

Bad interpreter: No such file or directory

When using version-2, I get the following error:

Installing platform-tools,extra-android-m2repository,build-tools-19.0.3,android-19,android-17,sysimg-17
/dev/stdin: /home/travis/.android-sdk-installer/tools/accept-licenses: /usr/bin/expect: bad interpreter: No such file or directory

Relevant travis.yml:

before_install:
# Install base Android SDK
  - sudo apt-get update -qq
  - sudo apt-get install -qq libstdc++6:i386 lib32z1
  - export TERM=dumb
  - export COMPONENTS=extra-android-m2repository,$BUILD_TOOLS,$LATEST_TARGET,$ANDROID_SDKS
  - curl -3L https://raw.github.com/embarkmobile/android-sdk-installer/version-2/android-sdk-installer | bash /dev/stdin --install=$COMPONENTS
  - source ~/.android-sdk-installer/env

Simply using version-1 resolves this error.

Support library is not found when building with Gradle

Hello,

When I build my project after using the installer, I get the error Could not find com.android.support:support-v4:19.0.1.
I'm including the components extra-android-support and extra-google-m2repository, however it looks like it cannot find the support repository.

Here is my full config:

export COMPONENTS=build-tools-19.1.0,android-19,sys-img-armeabi-v7a-android-19,extra-android-support,extra-google-m2repository
curl -L https://raw.github.com/embarkmobile/android-sdk-installer/version-2/android-sdk-installer | bash /dev/stdin --install=$COMPONENTS

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.