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

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

Open
3 tasks done
ElHurta opened this issue Dec 12, 2023 · 2 comments

Comments

@ElHurta
Copy link

ElHurta commented Dec 12, 2023

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

  • I used upgrade-helper to do my upgrade.
  • Upgrade Gradle to Grade 8.3
  • 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.

@li0nwalk3r
Copy link

Same problem for me

@iArchin
Copy link

iArchin commented Mar 20, 2024

same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants