upgrade-support icon indicating copy to clipboard operation
upgrade-support copied to clipboard

0.69.1 gradle-wrapper.jar conflicts during the upgrade to 0.70.3 Procedure

Open 1871636671 opened this issue 2 years ago • 3 comments

Environment

System: OS: macOS 12.4 CPU: (8) arm64 Apple M1 Memory: 87.97 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node Yarn: 1.22.18 - ~/.nvm/versions/node/v16.15.0/bin/yarn npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm Watchman: 2022.05.30.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: Not Found IDEs: Android Studio: 2021.2 AI-212.5712.43.2112.8609683 Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild Languages: Java: 11.0.15 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.1.0 => 18.1.0 react-native: 0.70.3 => 0.70.3 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Things I’ve done to figure out my issue

’npx react-native upgrade’

Upgrading version

Description

I am a novice, I am upgrading my project from 0.69.1 to the latest 0.70.3, but there is a conflict with gradle-wrapper.jar file during the upgrade process. I cannot check the conflict with gradle-Wrapper. jar file, I do not know where the conflict occurred and how to modify it

image

1871636671 avatar Oct 14 '22 10:10 1871636671

Hey, you can try deleting the gradle-wrapper.jar file and then re-create it using the gradle command. Refer this https://docs.gradle.org/current/userguide/gradle_wrapper.html

sarthakpranesh avatar Nov 15 '22 04:11 sarthakpranesh

嘿,你可以尝试删除gradle-wrapper.jar文件,然后使用 gradle 命令重新创建它。参考这个https://docs.gradle.org/current/userguide/gradle_wrapper.html

Thank you for your advice. It helped me solve the problem!

1871636671 avatar Nov 16 '22 06:11 1871636671

How you actually did your upgrade? Did you use any tool or manually implemented all changes mentioned inside (https://react-native-community.github.io/upgrade-helper/) ??

AdarshJais avatar Jul 26 '23 13:07 AdarshJais