New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android emulators are broken on trusty env update because avdmanager is not on PATH #8360
Comments
Confirm tipsi/tipsi-stripe |
What target ids are problematic? |
Hi @hzsweers and @isnifer, thanks for reporting this issue and sorry for the troubles. First of all, and while we help you sort out this issue or any other related to the migration to the Android image in Trusty, you can specify Now, let's get to some details on the new Android image (see #5370), which was released recently. In this update, the Getting back to the specific error you're seeing, the old Android image in Precise came with the following targets preinstalled:
however, the Trusty image comes only with For example, I made some tests on a fork of the tipsi/tipsi-stripe repository, and the build seems to be going through this step after adding the following components:
Could you please give this a try and let us know how it goes? Thank you! |
Mind taking a look at uber/AutoDispose#79 and letting me know if you spot anything obviously wrong? I've been trying to get this working but without avail (see the recent commits on the PR for various attempts) |
So it seems the crux of the issue is that the |
I've renamed this to be more accurate. Hope travis-ci can look into it soon as it seems to block any project using emulators :/ |
@iriberri my problem is solved, thank you) |
Unfortunately not, if you look at my linked PR you'll see that was one of the things I tried in my iterations |
It is not hard to get As I mentioned in #8155 (comment), we should eventually move to So, what does that leave you now? If you need env:
global:
- ANDROID_SDK_ROOT=/opt/android # any place `travis` can write to should work
before_install:
- mkdir -p $ANDROID_SDK_ROOT
# tailor the following list to your needs; `yes` below means accepting licenses.
- yes | sdkmanager --sdk_root=$ANDROID_SDK_ROOT "tools" "build-tools;26.0.1" "extras;android;m2repository"
- export PATH=${ANDROID_SDK_ROOT}/tools/bin:$PATH
|
That didn't work for me either. What did work for me was to actually install the tools manually, as in JakeWharton/butterknife#1055 Does travis maintain updated example projects and docs when updating images? |
Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues |
Started happening recently and noticed it on a couple of different android repos
uber/AutoDispose#71
JakeWharton/RxBinding#404
Error is basically
Error: Target id is not valid. Use 'android list targets' to get the target ids.
The text was updated successfully, but these errors were encountered: