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

Upgrade 0.72.6 to 0.76

Open DahaQalbi opened this issue 5 months ago • 0 comments

Environment

(node:42350) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created) warn Package rn-fetch-blob contains invalid configuration: "dependency.hooks" is not allowed. Please verify it's properly linked using "npx react-native config" command and contact the package maintainers about this. info Fetching system and libraries information... System: OS: macOS 15.5 CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz Memory: 104.68 MB / 16.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 22.13.0 path: ~/.nvm/versions/node/v22.13.0/bin/node Yarn: version: 1.22.22 path: /usr/local/bin/yarn npm: version: 10.9.2 path: ~/.nvm/versions/node/v22.13.0/bin/npm Watchman: version: 2025.05.26.00 path: /usr/local/bin/watchman Managers: CocoaPods: version: 1.16.2 path: /Users/mac/.rbenv/shims/pod SDKs: iOS SDK: Platforms: - DriverKit 24.5 - iOS 18.5 - macOS 15.5 - tvOS 18.5 - visionOS 2.5 - watchOS 11.5 Android SDK: API Levels: - "28" - "30" - "31" - "33" - "34" - "35" - "36" Build Tools: - 30.0.3 - 33.0.0 - 33.0.1 - 33.0.2 - 33.0.3 - 34.0.0 - 35.0.0 System Images: - android-30 | Google Play Intel x86 Atom - android-35 | Google Play Intel x86_64 Atom - android-36 | Google APIs Intel x86_64 Atom Android NDK: Not Found IDEs: Android Studio: 2024.1 AI-241.15989.150.2411.11948838 Xcode: version: 16.4/16F6 path: /usr/bin/xcodebuild Languages: Java: version: 17.0.9 path: /Users/mac/Library/Java/JavaVirtualMachines/semeru-17.0.9/Contents/Home/bin/javac Ruby: version: 2.7.0 path: /Users/mac/.rbenv/shims/ruby npmPackages: "@react-native-community/cli": Not Found react: Not Found react-native: Not Found react-native-macos: Not Found npmGlobalPackages: "react-native": Not Found Android: hermesEnabled: true newArchEnabled: true iOS: hermesEnabled: true newArchEnabled: false

info React Native v0.79.3 is now available (your project is running on v0.76.9). info Changelog: https://github.com/facebook/react-native/releases/tag/v0.79.3 info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.76.9&to=0.79.3 info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".

Things I’ve done to figure out my issue

  • [x] I used upgrade-helper to do my upgrade. I try but faild so many times so can I get help from your side

Upgrading version

0.76

Description

So for now my project is developed with react native 0.72.6. So I tried to deploy this project on the Google Play Store but failed because the target SDK version is too low. I need to upgrade the React Native version to the latest, or at least to 0.76.x, to be able to deploy. Got this error while run .gradle clean command

Reproducible demo

Error: Execution failed for task ':gradle-plugin:shared:compileKotlin'.

A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction

this is android/build.gradle file:

buildscript { ext { buildToolsVersion = "35.0.0" minSdkVersion = 24 compileSdkVersion = 35 targetSdkVersion = 34

     ndkVersion = "26.1.10909125"

kotlinVersion = "1.9.24" } repositories { google() mavenCentral() } dependencies {

classpath("com.android.tools.build:gradle:8.1.1") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion") classpath("com.facebook.react:react-native-gradle-plugin") classpath("com.google.gms:google-services:4.4.1") }

}

allprojects { repositories { google() mavenCentral() maven { url "$rootDir/../node_modules/react-native-video-cache-control/android/libs" } } }

setting.gradle: rootProject.name = 'ConsumerMobile' apply from: file("/Users/mac/Documents/ReactNative/long-story-short/node_modules/@react-native-community/cli-platform-android/native_modules.gradle") include ':app' includeBuild('/Users/mac/Documents/ReactNative/long-story-short/node_modules/@react-native/gradle-plugin')

include ':react-native-fs' project(':react-native-fs').projectDir = new File(settingsDir, '/Users/mac/Documents/ReactNative/long-story-short/node_modules/react-native-fs/android')

gradle-wrapper.properties: distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https://services.gradle.org/distributions/gradle-8.10-all.zip networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME validateDistributionUrl=true zipStorePath=wrapper/dists

DahaQalbi avatar Jun 10 '25 07:06 DahaQalbi