Skip to content
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

bump gradle to 4.8 #19758

Closed
wants to merge 1 commit into from
Closed

Conversation

dulmandakh
Copy link
Contributor

@dulmandakh dulmandakh commented Jun 16, 2018

Bump gradle version to 4.8, and greatly improves performance for sequential/incremental builds. Very useful for native Android development.

Test Plan

Everything builds as usual, CI is still GREEN https://circleci.com/gh/dulmandakh/react-native/421

Release Notes

[ANDROID] [ENHANCEMENT] [Gradle] - bump to 4.8

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 16, 2018
@react-native-bot react-native-bot added ✅Test Plan Missing Changelog This PR appears to be missing a changelog, or they are incorrectly formatted. Platform: Android Android applications. Type: Enhancement A new feature or enhancement of an existing feature. and removed Missing Changelog This PR appears to be missing a changelog, or they are incorrectly formatted. labels Jun 16, 2018
@gengjiawen
Copy link
Contributor

I am getting this error when build RNTester release version on windows (using gradle 4.8). Still not figure out the problem is.

> Task :RNTester:android:app:bundleReleaseJsAndAssets FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Failed to capture snapshot of input files for task ':RNTester:android:app:bundleReleaseJsAndAssets' property '$1' during up-to-date check.
> Failed to create MD5 hash for file content.

@dulmandakh
Copy link
Contributor Author

dulmandakh commented Jun 17, 2018 via email

@gengjiawen
Copy link
Contributor

The problem still exists even if I do not install, weird.

@dulmandakh
Copy link
Contributor Author

dulmandakh commented Jun 17, 2018

I had same problem, and did fresh npm install. It's not related to gradle. Sorry for typo

@gengjiawen
Copy link
Contributor

On Windows or on macOS ? In both suitable, we may need a fix to react.gradle is needed.

@dulmandakh
Copy link
Contributor Author

Works on Mac and Linux (CI). Not sure about Windows, but should be fine.

Your above issue should be caused by JS

@gengjiawen
Copy link
Contributor

But I am using nodejs 10.4.1, just as macOS. I have rm -rf node_modules && npm install multi times. The problem still exists.

@dulmandakh
Copy link
Contributor Author

Oh yea, I removed .buckd folder and it worked.

@gengjiawen
Copy link
Contributor

I am not using buck.

@dulmandakh
Copy link
Contributor Author

me too, but remove if it's there

@gengjiawen
Copy link
Contributor

I remove some build cache. The problem still exists.

@gengjiawen
Copy link
Contributor

@grabbou @hramos Next release we may need to do need some test on windows.

@ACCTFORGH
Copy link

This will be a much needed update. I've encountered a number of libraries that weren't able to compile because of gradle version, one of them being https://github.com/react-native-community/react-native-camera

However, whenever I try to increment gradle version myself, it always introduces a chain of errors. I'm not familiar with the source code of React Native but I suspect the gradle version upgrade will involve some deeper dependency and configuration change as well.

@dulmandakh
Copy link
Contributor Author

@hramos @mdvacca newer gradle version greatly improves build speed, thus enhance developer experience, but also I think that this PR will make it easier to bump android gradle plugin version in the future

@patrickkempff
Copy link
Contributor

Why was this PR closed?

@dulmandakh
Copy link
Contributor Author

@patrickkempff it was causing some issues when used with gradle plugin 3.x. And created another PR with gradle 4.4 or version recommended by Android Studio. #19899

@dulmandakh dulmandakh deleted the bump-gradle-48 branch June 28, 2018 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Platform: Android Android applications. Type: Enhancement A new feature or enhancement of an existing feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants