Home > other >  React Native - :expo-modules-core:compileDebugKotlin error
React Native - :expo-modules-core:compileDebugKotlin error

Time:11-07

For some reason, Im getting this issue (build was working fine yesterday):

When I run npx react-native run-android

Im getting:

Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
Execution failed for task ':expo-modules-core:compileDebugKotlin'.

In terminal im also seeing this:

Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.

I've seen some solutions online like this. So iv added the kotlin version 1.4.1 and im getting this error when I gun gradle clean:

* What went wrong:
A problem occurred configuring root project 'ProjectName'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.1.
     Searched in the following locations:
   - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.4.1/kotlin-gradle-plugin-1.4.1.pom
   - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.4.1/kotlin-gradle-plugin-1.4.1.pom
   - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.4.1/kotlin-gradle-plugin-1.4.1.pom
 Required by:
     project :

Not sure why this build has started failing. any ideas?

CodePudding user response:

have you initiated your projects with "expo init" command or by using npx?

CodePudding user response:

Expo Init... i am facing the same issue

  • Related