Description of the issue
After having successfully built our project many times, with no changes to the packages / gradle, all of a sudden our build gets stuck on react-native-push-notification when compiling our React Native Android project on Bitrise (but builds locally).
At first it was failing on the step: install-missing-android-tools
> Could not resolve all dependencies for configuration ':app:_debugApk'.
> A problem occurred configuring project ':react-native-push-notification'.
> Could not find play-services-tasks-license.aar (com.google.android.gms:play-services-tasks-license:11.8.0).
Searched in the following locations:
https://jcenter.bintray.com/com/google/android/gms/play-services-tasks-license/11.8.0/play-services-tasks-license-11.8.0.aar
But I switched to using āAndroid SDK Updateā in this step and that same error above started to show up in the ā./gradlew assembleReleaseā step.
I have read a bunch of suggestions online to specify the play services 11.8.0. I even wrote a script to manually replace the node_modules build.gradle line for play services from version ā+ā to ā11.8.0ā
This is the closest I could find to the problem I am having and there is no answer as of writing this post:
https://stackoverflow.com/questions/52987790/could-not-find-play-services-tasks-license-aar-com-google-android-gmsplay-serv
I can successfully run both ā./gradlew assembleReleaseā and the bitrise CLI tool with install-missing-android-tools on my local computer.
I would not be writing this post if I could reproduce the failure locally.
Environment:
Oct 28, 2018 (issue also reported about 4 days ago on Stack Overflow)
stack: react-native
platform with issue: Android
step: install-missing-android-tools (as well as the main android building step)
Reproducibility
- rebuild does not help
- we are not using caches as far as I know
- happens every time on our build
- upgrading does not help
- noticed as of today Oct 28, 2018
- all steps work locally
Local reproduction
unable to reproduce locally
Build log
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
> A problem occurred configuring project ':react-native-push-notification'.
> Could not find play-services-tasks-license.aar (com.google.android.gms:play-services-tasks-license:11.8.0).
Searched in the following locations:
https://jcenter.bintray.com/com/google/android/gms/play-services-tasks-license/11.8.0/play-services-tasks-license-11.8.0.aar
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 15.489 secs
error: exit status 1
| |
+---+---------------------------------------------------------------+----------+
| x | install-missing-android-tools (exit code: 1) | 90 sec |
+---+---------------------------------------------------------------+----------+
| Issue tracker: ...bitrise-steplib/steps-install-missing-android-tools/issues |
| Source: ...://github.com/bitrise-steplib/steps-install-missing-android-tools |
+---+---------------------------------------------------------------+----------+