-
Notifications
You must be signed in to change notification settings - Fork 723
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
Can't build and test through. Android-27 , build-tools-27.0.2 #8874
Comments
I encountered the same issue. The error:
My build log: https://travis-ci.org/Pattonville-App-Development-Team/Android-App/builds/313576794 StackOverflow question: https://stackoverflow.com/a/47719835/9073728 |
It seems Google uploaded a new version of the android-27 package and the checksum is now different and the download fails. It might be caused because we are using the old before_install:
- yes | sdkmanager "platforms;android-27" Please let us know if this helps or not. Thanks! |
@cotsog It looks like that fixed it! Here's my first successful build: https://travis-ci.org/Pattonville-App-Development-Team/Android-App/builds/313658277 |
it works, thanks to all . |
@cotsog It works, however, we need final solution. |
where is .travis.yml this file located.. |
@nagkumar I placed it after |
Should this issue be re-opened until there is a proper fix? |
I reopen |
* Use srcCompat for vector drawables as specified by Lint * Remove obsolete <uses-amzn-sdk> tag - See https://forums.developer.amazon.com/articles/90051/removing-the-tag-from-your-android-manifest.html * Bump compileSdkVersion to 27, fix loading bike drawable on API <= 19 * Add leftover import changes from vector drawable API 19 fix * Bump Travis to API Level 27 * Fix Travis license issue - Based on travis-ci/travis-ci#8874 * Override ES SDK social comment icon with PNG instead of vector - As discussed in #835, it seems that an XML vector drawable doesn't properly override a library PNG drawable with the same name. So, we'll switch to using PNGs for this in the application. Using this method, Android Studio still shows the library icon when looking at the layouts in OBA Android, but when running the app the correct PNG drawables from the OBA app are shown. Posts that were useful in resolving issues: * https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html#aapt2_resource_naming * https://stackoverflow.com/questions/44239235/android-gradle-3-0-0-alpha2-plugin-cannot-set-the-value-of-read-only-property/44265374#44265374 * https://stackoverflow.com/a/47132142/937715 * https://stackoverflow.com/questions/42374151/all-com-android-support-libraries-must-use-the-exact-same-version-specification
This should be re-opened. Still no proper fix. |
Yes, Just created a new pipeline. Failed over and over. Only way to make it works was:
|
For some reason, the license was not accepted anymore. Fixed by following the recommended solution in: travis-ci/travis-ci#8874
For some reason, the license was not accepted anymore. Fixed by following the recommended solution in: travis-ci/travis-ci#8874
Using recommended workaround from: travis-ci/travis-ci#8874
Using recommended workaround from: travis-ci/travis-ci#8874
Travis is still using the deprecated `android` command to install things per travis-ci/travis-ci#8874 (comment), which might be behind this issue (and others to come).
…(comment). Why wasn't this license already accepted?
Travis is still using the deprecated `android` command to install things per travis-ci/travis-ci#8874 (comment), which might be behind this issue (and others to come).
…(comment). Why wasn't this license already accepted?
Travis is still using the deprecated `android` command to install things per travis-ci/travis-ci#8874 (comment), which might be behind this issue (and others to come).
…(comment). Why wasn't this license already accepted?
* Try hooking this up all up in Travis. Two jobs, one to run the unit tests and one to run the E2E ones headlessly on Travis infrastructure. Tempted to add jobs to build and run against BrowserStack, Sauce Labs and TestObject, but one thing at a time first... @hadnazzar already committed the dummy credentials in `android/gradle.properties` though, so it's not like having Travis decrypt this committed keystore will be more secure or anything. If anything, it's worse 😂 * Just install Android SDK dependencies ourselves. Travis is still using the deprecated `android` command to install things per travis-ci/travis-ci#8874 (comment), which might be behind this issue (and others to come). * Actually, just prefer letting Travis install these (properly). Copy/pasta problems coming from the `sdkmanager` command notation - `android` should still be able to find these versions no? * Try for `ANDROID_BUILD_TOOLS_VERSION` at 28.0.3. * `npm install -g yarn` `before_install` on `E2E tests (android)`. * Use the given `nvm` to install `$TRAVIS_NODE_VERSION`. Travis still sets this right? I mean, the version is in the build name... * Defer to `TRAVIS_NODE_VERSION` if it exists, otherwise use `10`. * Explicitly say `yes` to all `sdkmanager --licenses`. * Just explicitly install the Android SDK per travis-ci/travis-ci#8874 (comment). Why wasn't this license already accepted? * Explicitly call `$ANDROID_HOME/tools/bin/sdkmanager`. And accept all licenses. * Remove extra slash. * `${ANDROID_HOME}` is what needs to be evaluated, not `$ANDROID_HOMEtools` * This wanted to be a space, not a `"`. * Whitelist all the licenses, even though it shouldn't matter... * Set `supportLibVersion` to be the same as `buildToolsVersion`. * Move `node_js` language/version selection to the `Unit tests` job. * Revert "Set `supportLibVersion` to be the same as `buildToolsVersion`." Yeah. No. This reverts commit 6fd8f25. * Just `echo` in the license manually... * Run `build:android`, not `bs:android`. * Actually specify the correct `ANDROID_API_VERSION`. And use `android create avd` and `android delete avd` instead of `avdmanager`, which doesn't seem to get installed properly. * `pree2e` script should `adb wait-for-device get-serialno`. * Note the closest I got to getting Travis to run the app on an emulator. I'm pretty sure I'm just running into a race condition somewhere installing the app, but I can't quite tell exactly where, or what to wait for. * Just bring our own Android environment per https://medium.com/@nocnoc/android-emulators-in-thcloud-f39e11c15bfa. It boots the emulators, but getting Appium to install the emulators is a whole other story... * Fix missing `ANDROID_TOOLS_BUILD_VERSION` and incorrect `ANDROID_EMULATOR_PLATFORM_VERSION`. * Define `ANDROID_HOME` and `ANDROID_SDK_ROOT` in `before_install`. Not `before_script`. * Try testing with `android-23` on `armeabi-v7a`. * Try and let `appium` boot and initialize the emulator on its own. * Only `sleep` for at most 60 seconds `beforeAll` `wd` E2E tests. * Set Travis timeouts to be 10 minutes. Worth a shot I guess? * Revert "Only `sleep` for at most 60 seconds `beforeAll` `wd` E2E tests." Just defer to the `DEVICE_TIMEOUT` here. This reverts commit 4f1416c. * Don't bother caching `gradle` artifacts. * Just boot the emulator ourselves. This commit reverts (conceptually) 4ae60c0. * `sdkmanager` installs `tools` on its own, to avoid `sdkmanager` errors. I don't know why it can't find `tools` sometimes, but this seems to help. * I think the whitespace here is tripping Travis up. It finds `tools` just fine when I copy/paste this file in... * Travis allows the local E2E Android tests to fail. * Add a separate `E2E` stage.
Please re-open this. I still can't succeed my build in travis-ci https://api.travis-ci.com/v3/job/204776450/log.txt?log.token=4ZVjWxhbLWwpDzxFgtM5pg |
* Change button sure for apply like before since has more translations and make more sense. * Fix travis for API 27. See issue: travis-ci/travis-ci#8874 * Revert last commit
* Change button sure for apply like before since has more translations and make more sense. * Fix travis for API 27. See issue: travis-ci/travis-ci#8874 * Revert last commit
Thanks @cotsog It worked! Been stuck on this for hours, finally your solution worked! |
After installation of latest Android SDK I found out that Android\android-sdk\platforms\android-28 |
Can any one help me?
Stuck from my side.
https://travis-ci.org/XinyueZ/mvvm-template/jobs/313586340
I can 't build (./gradlew test) it.
my
yml
isI have tried 27.0.1 as well, same failed.
I had one or three times successed, just 2 hours later, something went wrong.
same
yml
, no change.The text was updated successfully, but these errors were encountered: