0

I received the below error when trying to build my project from my expo-app-auth/android/build.grandle. how to clear this error when building? I think I've tried almost all solutions found online.

> Configure project :react-native-reanimated
AAR for react-native-reanimated has been found
/home/expo/workingdir/build/node_modules/react-native-reanimated/android/react-native-reanimated-71-hermes.aar

FAILURE: Build failed with an exception.

* What went wrong:

The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.

The following dependencies do not satisfy the required version:

project ':expo-app-auth' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.21

* Try:

> Run with --stacktrace option to get the stack trace.



  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }

  dependencies {
  
    classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.21")
  }
}

apply(plugin = "org.jetbrains.kotlin.android")
James Z
  • 12,209
  • 10
  • 24
  • 44
Victor G
  • 5
  • 2

3 Answers3

0

I solved this issue by upgrding from expo 48 to expo 49

Victor G
  • 5
  • 2
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jul 24 '23 at 11:10
0

Resolving Expo-app-auth Dependency Error

This error occurs due to the expo-app-auth dependency being deprecated.

How ​​to solve:

  1. Access the node_modules folder, locate the expo-app-auth folder and remove it;
  2. Open the package.json file and delete the mentioned dependency;
  3. Then run yarn or npm install to install or remove dependencies.

Note: If the problem persists and the dependency is still in package.json, repeat the steps above, but this time check if you have other libraries, packages or dependencies that use expo-app-auth . If so, also remove those packages, as they may also be (possibly) deprecated.

  • Good day, thank you so much for your feedback, I removed the expo-app-auth folder and the error message has been removed. I did remove other dependencies and it seems all good. Only issue is now the below error Im receiving: FAILURE: Build failed with an exception. [stderr] * What went wrong: [stderr] Execution failed for task ':app:createBundleReleaseJsAndAssets'. [stderr] > Process 'command 'node'' finished with non-zero exit value 1 – Victor G Aug 01 '23 at 09:37
0

This issue could be fixed by upgrading from expo 48 to expo 49.

To upgrade the project run these two commands:

  1. npm install expo@^49.0.6
  2. npx expo install --fix

The second command is important because it will auomatically upgrade react-native from 0.71.* to 0.72.*

See the official docs for more details.

Hasan
  • 155
  • 1
  • 2
  • 13