Gradlew build error

Hi,

I have a managed expo app and when I run a build, the error is:

> Configure project :expo

83

Using expo modules

84

  - expo-app-auth (11.1.1)

85

  - expo-application (5.1.1)

86

  - expo-constants (14.2.1)

87

  - expo-eas-client (0.5.1)

88

  - expo-file-system (15.2.2)

89

  - expo-font (11.1.1)

90

  - expo-image-loader (4.1.1)

91

  - expo-image-manipulator (11.1.1)

92

  - expo-image-picker (14.1.1)

93

  - expo-json-utils (0.5.1)

94

  - expo-keep-awake (12.0.1)

95

  - expo-manifests (0.5.2)

96

  - expo-modules-core (1.2.4)

97

  - expo-notifications (0.18.1)

98

  - expo-sharing (11.2.2)

99

  - expo-splash-screen (0.18.1)

100

  - expo-structured-headers (3.1.1)

101

  - expo-updates (0.16.3)

102

WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.

103

> Configure project :react-native-reanimated

104

AAR for react-native-reanimated has been found

105

/home/expo/workingdir/build/node_modules/react-native-reanimated/android/react-native-reanimated-71-hermes.aar

106[stderr]

FAILURE: Build failed with an exception.

107[stderr]

* What went wrong:

108[stderr]

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

109[stderr]

The following dependencies do not satisfy the required version:

110[stderr]

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

111[stderr]

* Try:

112[stderr]

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

113[stderr]

> Run with --info or --debug option to get more log output.

114[stderr]

> Run with --scan to get full insights.

115[stderr]

* Get more help at https://help.gradle.org

116[stderr]

BUILD FAILED in 3m 11s

117

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

118

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

119

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings

120

5 actionable tasks: 5 executed

121

Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

Hi @mateus.correa

Please run npx expo-doctor and post the output. Also your dependencies and devDependencies from package.json

npx expo-doctor
npx: installed 94 in 14.109s
WARNING: We recommend using PowerShell or Bash via WSL 2 for development with Expo CLI on Windows. You may encounter issues using cmd.exe.

√ Validating global prerequisites versions
× Checking for incompatible packages
Error: Dependency tree validation for @unimodules/core failed. This validation is only available on Node 16+ / npm 8.
× Checking for conflicting global packages in project
Error: Dependency tree validation for expo-cli failed. This validation is only available on Node 16+ / npm 8.
× Verifying prebuild support package versions are compatible
Error: Dependency tree validation for expo-modules-autolinking failed. This validation is only available on Node 16+ / npm 8.
× Checking dependency versions for compatibility with the installed Expo SDK
Issues:
'sh' n�o � reconhecido como um comando interno
ou externo, um programa oper�vel ou um arquivo em lotes.
Advice:
• Use npx expo install --check to review and upgrade your dependencies.
√ Validating Expo Config
√ Checking package.json for common issues

![✖](upload://9eaHsznx4OjERoZIfPKvEsBtYZK.png) Found one or more possible issues with the project. See above logs for issues and advice to resolve.
"dependencies": {
    "@expo-google-fonts/poppins": "^0.1.0",
    "@hookform/resolvers": "^2.5.2",
    "@react-native-async-storage/async-storage": "1.17.11",
    "@react-native-masked-view/masked-view": "0.2.8",
    "@react-native-picker/picker": "2.4.8",
    "@react-navigation/bottom-tabs": "^5.11.11",
    "@react-navigation/material-top-tabs": "^6.0.4",
    "@react-navigation/native": "^6.0.4",
    "@react-navigation/stack": "^6.0.9",
    "axios": "^0.21.1",
    "date-fns": "^2.22.1",
    "expo": "^48.0.0",
    "expo-apple-authentication": "~6.0.1",
    "expo-constants": "~14.2.1",
    "expo-font": "~11.1.1",
    "expo-google-app-auth": "~8.3.0",
    "expo-image-manipulator": "~11.1.1",
    "expo-image-picker": "~14.1.1",
    "expo-notifications": "~0.18.1",
    "expo-sharing": "~11.2.2",
    "expo-splash-screen": "~0.18.1",
    "expo-status-bar": "~1.4.4",
    "expo-updates": "~0.16.3",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-hook-form": "^7.7.1",
    "react-native": "0.71.3",
    "react-native-calendars": "^1.1264.0",
    "react-native-chart-kit": "^6.12.0",
    "react-native-gesture-handler": "~2.9.0",
    "react-native-iphone-x-helper": "^1.3.1",
    "react-native-pager-view": "6.1.2",
    "react-native-reanimated": "~2.14.4",
    "react-native-responsive-fontsize": "^0.5.0",
    "react-native-safe-area-context": "4.5.0",
    "react-native-screens": "~3.20.0",
    "react-native-svg": "13.4.0",
    "react-native-svg-transformer": "^0.14.3",
    "react-native-tab-view": "^3.1.1",
    "react-native-view-shot": "3.5.0",
    "react-native-web": "~0.18.11",
    "styled-components": "^5.3.5",
    "yup": "^0.32.9"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@types/react": "~18.0.27",
    "@types/react-native": "^0.67.12",
    "@types/react-native-calendars": "^1.505.3",
    "@types/styled-components-react-native": "^5.1.3",
    "typescript": "^4.9.4"
  },

Please can you try upgrading to Node 16 and then re-run npx expo-doctor?

Maybe also try using PowerShell instead of cmd.exe

You should upgrade @react-navigation/bottom-tabs to version 6.x to match the other React Navigation dependencies.

This is deprecated. See this: Using Google authentication