You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UPGRADING TO REACT NATIVE 0.74.1 - Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:.
#278
Closed
1 task done
SMKH-PRO opened this issue
May 25, 2024
· 3 comments
I manually copy pasted the differences from the helper into my code.
I have verified multiple times to have copied the correct code couldn't find my mistake.
Upgrading version
From 0.72.3 to 0.74.1
Description
Getting this error and build is failing:
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring root project 'MyApp'.
Could not determine the dependencies of null.
Could not resolve all task dependencies for configuration ':classpath'.
> Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:.
Required by:
project :
Full Logs:
MacBook-Pro android % ./gradlew clean --info
Initialized native services in: /Users/smkh/.gradle/native
Initialized jansi services in: /Users/smkh/.gradle/native
Received JVM installation metadata from '/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home': {JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home, JAVA_VERSION=17.0.10, JAVA_VENDOR=Azul Systems, Inc., RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=17.0.10+7-LTS, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=17.0.10+7-LTS, VM_VENDOR=Azul Systems, Inc., OS_ARCH=x86_64}
The client will now receive all logging from the daemon (pid: 23328). The daemon log file: /Users/smkh/.gradle/daemon/8.6/daemon-23328.out.log
Starting 39th build in daemon [uptime: 3 hrs 13 mins 31.491 secs, performance: 100%, GC rate: 0.00/s, heap usage: 3% of 2 GiB, non-heap usage: 30% of 512 MiB]
Using 12 worker leases.
Now considering [/Users/smkh/Documents/GitHub/ReactNative_CodePush_Template/template/android, /Users/smkh/Documents/GitHub/ReactNative_CodePush_Template/template/node_modules/@react-native/gradle-plugin] as hierarchies to watch
Watching the file system is configured to be enabled if available
File system watching is active
Starting Build
:ReactNative:Automatically adding native module '@react-native-async-storage/async-storage'
:ReactNative:Automatically adding native module '@sentry/react-native'
:ReactNative:Automatically adding native module 'appcenter'
:ReactNative:Automatically adding native module 'appcenter-analytics'
:ReactNative:Automatically adding native module 'appcenter-crashes'
:ReactNative:Skipping native module 'lottie-ios'
:ReactNative:Automatically adding native module 'lottie-react-native'
:ReactNative:Automatically adding native module 'react-native-bootsplash'
:ReactNative:Automatically adding native module 'react-native-code-push'
:ReactNative:Automatically adding native module 'react-native-config'
:ReactNative:Automatically adding native module 'react-native-exception-handler'
:ReactNative:Automatically adding native module 'react-native-fast-image'
:ReactNative:Automatically adding native module 'react-native-safe-area-context'
:ReactNative:Automatically adding native module 'react-native-screens'
:ReactNative:Skipping native module 'react-native-simple-toast'
:ReactNative:Automatically adding native module 'react-native-svg'
:ReactNative:Automatically adding native module 'react-native-vector-icons'
:ReactNative:Automatically adding native module 'rn-secure-storage'
Settings evaluated using settings file '/Users/smkh/Documents/GitHub/ReactNative_CodePush_Template/template/android/settings.gradle'.
Now considering [/Users/smkh/Documents/GitHub/ReactNative_CodePush_Template/template/node_modules/@react-native/gradle-plugin, /Users/smkh/Documents/GitHub/ReactNative_CodePush_Template/template/android] as hierarchies to watch
Projects loaded. Root project using build file '/Users/smkh/Documents/GitHub/ReactNative_CodePush_Template/template/android/build.gradle'.
Included projects: [root project 'MyApp', project ':app', project ':appcenter', project ':appcenter-analytics', project ':appcenter-crashes', project ':lottie-react-native', project ':react-native-async-storage_async-storage', project ':react-native-bootsplash', project ':react-native-code-push', project ':react-native-config', project ':react-native-exception-handler', project ':react-native-fast-image', project ':react-native-safe-area-context', project ':react-native-screens', project ':react-native-svg', project ':react-native-vector-icons', project ':rn-secure-storage', project ':sentry_react-native']
> Configure project :gradle-plugin
Evaluating project ':gradle-plugin' using build file '/Users/smkh/Documents/GitHub/ReactNative_CodePush_Template/template/node_modules/@react-native/gradle-plugin/build.gradle.kts'.
Invalidating in-memory cache of /Users/smkh/Documents/GitHub/ReactNative_CodePush_Template/template/node_modules/@react-native/gradle-plugin/.gradle/buildOutputCleanup/outputFiles.bin
Transforming kotlin-gradle-plugin-1.7.22-gradle71.jar (org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlin-gradle-plugin-api-1.7.22-gradle71.jar (org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlin-gradle-plugin-model-1.7.22.jar (org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlin-klib-commonizer-api-1.7.22.jar (org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlin-project-model-1.7.22.jar (org.jetbrains.kotlin:kotlin-project-model:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlin-android-extensions-1.7.22.jar (org.jetbrains.kotlin:kotlin-android-extensions:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlin-annotation-processing-gradle-1.7.22.jar (org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlin-gradle-plugin-idea-proto-1.7.22.jar (org.jetbrains.kotlin:kotlin-gradle-plugin-idea-proto:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlin-scripting-compiler-embeddable-1.7.22.jar (org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlin-gradle-plugin-idea-1.7.22.jar (org.jetbrains.kotlin:kotlin-gradle-plugin-idea:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlin-scripting-compiler-impl-embeddable-1.7.22.jar (org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlin-compiler-runner-1.7.22.jar (org.jetbrains.kotlin:kotlin-compiler-runner:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlin-tooling-core-1.7.22.jar (org.jetbrains.kotlin:kotlin-tooling-core:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlin-native-utils-1.7.22.jar (org.jetbrains.kotlin:kotlin-native-utils:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlin-util-klib-1.7.22.jar (org.jetbrains.kotlin:kotlin-util-klib:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlin-gradle-plugin-api-1.7.22.jar (org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Transforming jna-5.6.0.jar (net.java.dev.jna:jna:5.6.0) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlin-build-common-1.7.22.jar (org.jetbrains.kotlin:kotlin-build-common:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlin-scripting-jvm-1.7.22.jar (org.jetbrains.kotlin:kotlin-scripting-jvm:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlin-daemon-embeddable-1.7.22.jar (org.jetbrains.kotlin:kotlin-daemon-embeddable:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlin-util-io-1.7.22.jar (org.jetbrains.kotlin:kotlin-util-io:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Transforming trove4j-1.0.20200330.jar (org.jetbrains.intellij.deps:trove4j:1.0.20200330) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlinx-coroutines-core-jvm-1.5.0.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlin-scripting-common-1.7.22.jar (org.jetbrains.kotlin:kotlin-scripting-common:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlin-compiler-embeddable-1.7.22.jar (org.jetbrains.kotlin:kotlin-compiler-embeddable:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Transforming kotlin-daemon-client-1.7.22.jar (org.jetbrains.kotlin:kotlin-daemon-client:1.7.22) with ExternalDependencyInstrumentingArtifactTransform
Using Kotlin Gradle Plugin gradle71 variant
kotlin scripting plugin: created the scripting discovery configuration: kotlinScriptDef
kotlin scripting plugin: created the scripting discovery configuration: testKotlinScriptDef
Registering project ':gradle-plugin' in composite build. Will substitute for module 'com.facebook.react:react-native-gradle-plugin'.
> Configure project :
Evaluating root project 'MyApp' using build file '/Users/smkh/Documents/GitHub/ReactNative_CodePush_Template/template/android/build.gradle'.
Found project 'project :gradle-plugin' as substitute for module 'com.facebook.react:react-native-gradle-plugin'.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'MyApp'.
> Could not determine the dependencies of null.
> Could not resolve all task dependencies for configuration ':classpath'.
> Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:.
Required by:
project :
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 2s
Watched directory hierarchies: [/Users/smkh/Documents/GitHub/ReactNative_CodePush_Template/template/node_modules/@react-native/gradle-plugin]
Hello, i'm having the exact same error, update done with Rn Diff Helper, too, how did you fix it by "clean installing the libraries" would help me, thanks.
Environment
Things I’ve done to figure out my issue
I manually copy pasted the differences from the helper into my code.
I have verified multiple times to have copied the correct code couldn't find my mistake.
Upgrading version
From 0.72.3 to 0.74.1
Description
Getting this error and build is failing:
FAILURE: Build failed with an exception.
A problem occurred configuring root project 'MyApp'.
Reproducible demo
Main branch of this repo:
https://github.com/SMKH-PRO/ReactNative_CodePush_Template
The text was updated successfully, but these errors were encountered: