journeyapps / android-sdk-installer Goto Github PK
View Code? Open in Web Editor NEW[DEPRECATED] Android SDK Installer Script
License: Other
[DEPRECATED] Android SDK Installer Script
License: Other
For instance, we have just switched to your scripts (and thank you very much for taking this in charge), and our travis files uses a maven setting using matrix builds.
It could be interesting to reference examples like this from the README file or from the wiki.
https://github.com/octo-online/robospice/blob/master/.travis.yml
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.
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
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 !
Why not use adb wait-for-device
instead of ci/wait_for_emulator.sh
?
If you want I can submit a Pull Request with the change.
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.
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.
So my build was working fine a few days ago when I was doing (pretty much) the exact same thing as I am doing now. I tried explicitly accepting the licenses as well as not explicitly accepting them. I'm kinda stuck right now. Here's a link to my build logs: https://api.travis-ci.org/jobs/196273484/log.txt?deansi=true
relavant yml and scripts:
before_script.txt
install_script.txt
travis_yml.txt
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
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.