-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[0.57.0-rc.4] run-android: Could not find method google()... #21020
Comments
The gradle version in template is 4.4, which should works. Are you creating new project, or upgrade from old project ? |
Upgrade from old (rc0), with my existing Any "harm" in going with gradle 4.10 as I have, or should I stick with 4.4 myself? PS. probably 4.4.1, as the latest minor version off 4.4 |
Both should works fine. But android gradle plugin is using 4.4, that's why we choose that version. |
If there's no simple way to conditionally enforce Gradle being >= 4.4 in |
Actually you should use |
could any of you add a comment related to this here, so that we can add an extra step? I mean, we have already a section mentioning the Android native side updates, but maybe be worth mentioning the specific changes? |
I have mentioned there. |
Environment
Description
Reproducible Demo
Run
react-native run-android
like above, with this asgradle-wrapper.properties
like mine:Took me some googling to figure this out. I fixed this with
Gradle 4.10 is the current latest.
For RN 0.57 release, should change distributionUrl in android templates so users with old gradle dep like me don't bump into this same issue.
This complements this merged PR in 0.57: #20767
The text was updated successfully, but these errors were encountered: