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

React Native Upgrade 0.68.0 -> 0.73.0 | Could not resolve org.jetbrains.kotlin:kotlin-reflect:1.6.10

Open ElHurta opened this issue 1 year ago • 2 comments

Environment

System: OS: Windows 10 10.0.19045 CPU: (12) x64 12th Gen Intel(R) Core(TM) i7-1265U Memory: 421.98 MB / 15.44 GB Binaries: Node: version: 20.9.0 path: C:\Program Files\nodejs\node.EXE Yarn: version: 1.22.21 path: ~\AppData\Roaming\npm\yarn.CMD npm: version: 10.1.0 path: C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: API Levels: - "23" - "28" - "30" - "31" - "33" - "34" Build Tools: - 30.0.2 - 30.0.3 - 31.0.0 - 33.0.0 - 34.0.0 System Images: - android-30 | Google Play Intel x86 Atom - android-31 | Google Play Intel x86_64 Atom - android-34 | Google APIs Intel x86_64 Atom Android NDK: Not Found Windows SDK: Not Found IDEs: Android Studio: AI-223.8836.35.2231.11005911 Visual Studio: Not Found Languages: Java: 17.0.9 Ruby: Not Found npmPackages: "@react-native-community/cli": Not Found react: installed: 18.2.0 wanted: 18.2.0 react-native: installed: 0.73.0 wanted: 0.73.0 react-native-windows: Not Found npmGlobalPackages: "react-native": Not Found Android: hermesEnabled: true newArchEnabled: false iOS: hermesEnabled: Not found newArchEnabled: Not found

Things I’ve done to figure out my issue

  • [x] I used upgrade-helper to do my upgrade.
  • [x] Upgrade Gradle to Grade 8.3
  • [x] Switched to JDK 17

Upgrading version

Upgrading to 0.73.0

Description

I finished my upgrade to the 0.73.0 version, but when I run npx react-native run-android I get the following error related to Kotlin Reflect:

FAILURE: Build failed with an exception.
 
* What went wrong:
A problem occurred configuring root project 'midatacredito'.
> Could not determine the dependencies of task ':gradle-plugin:compileKotlin'.
> Could not resolve all task dependencies for configuration ':gradle-plugin:kotlinCompilerClasspath'.
> Could not resolve org.jetbrains.kotlin:kotlin-reflect:1.6.10.
        Required by:
            project :gradle-plugin > org.jetbrains.kotlin:kotlin-compiler-embeddable:1.8.0    
> Could not resolve org.jetbrains.kotlin:kotlin-reflect:1.6.10.
> Could not get resource '[https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-reflect/1.6.10/kotlin-reflect-1.6.10.pom'.](https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-reflect/1.6.10/kotlin-reflect-1.6.10.pom%27.)
> Could not HEAD '[https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-reflect/1.6.10/kotlin-reflect-1.6.10.pom'.](https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-reflect/1.6.10/kotlin-reflect-1.6.10.pom%27.)
> Got SSL handshake exception during request. It might be caused by SSL misconfiguration
> PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve org.jetbrains.kotlin:kotlin-reflect:1.6.10.
> Could not get resource '[https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-reflect/1.6.10/kotlin-reflect-1.6.10.pom'.](https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-reflect/1.6.10/kotlin-reflect-1.6.10.pom%27.)
> Could not HEAD '[https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-reflect/1.6.10/kotlin-reflect-1.6.10.pom'.](https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-reflect/1.6.10/kotlin-reflect-1.6.10.pom%27.)
> Got SSL handshake exception during request. It might be caused by SSL misconfiguration
> PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Reproducible demo

  • Run npx react-native start
  • Run npx react-native run-android

I can't share the project. I can share the package.json file if It's needed, I think one of the dependencies is causing the issue.

ElHurta avatar Dec 12 '23 16:12 ElHurta

Same problem for me

li0nwalk3r avatar Jan 17 '24 03:01 li0nwalk3r

same

iArchin avatar Mar 20 '24 23:03 iArchin