react native upgrade 0.64.2 to 0.66.1
See original GitHub issueNew Version
0.66.1
Old Version
0.64.2
Build Target(s)
buildToolsVersion = “30.0.2” compileSdkVersion = 30 targetSdkVersion = 30
Output of react-native info
Task :app:checkDevDebugAarMetadata FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use ‘–warning-mode all’ to show the individual deprecation warnings. See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings 187 actionable tasks: 180 executed, 7 up-to-date
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ‘:app:checkDevDebugAarMetadata’.
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction The minCompileSdk (31) specified in a dependency’s AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) is greater than this module’s compileSdkVersion (android-30). Dependency: androidx.core:core:1.7.0. AAR metadata file: /Users/malikhezretov/.gradle/caches/transforms-3/8dffba8f50f81940e51ed01576f31fbd/transformed/core-1.7.0/META-INF/com/android/build/gradle/aar-metadata.properties.
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --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 31s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: ./gradlew app:installDevDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ‘:app:checkDevDebugAarMetadata’.
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction The minCompileSdk (31) specified in a dependency’s AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) is greater than this module’s compileSdkVersion (android-30). Dependency: androidx.core:core:1.7.0. AAR metadata file: /Users/malikhezretov/.gradle/caches/transforms-3/8dffba8f50f81940e51ed01576f31fbd/transformed/core-1.7.0/META-INF/com/android/build/gradle/aar-metadata.properties.
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --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 31s
at makeError (/Users/malikhezretov/autumn-frontend-mobile/node_modules/execa/index.js:174:9)
at /Users/malikhezretov/autumn-frontend-mobile/node_modules/execa/index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (/Users/malikhezretov/autumn-frontend-mobile/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:106:5)
at async Command.handleAction (/Users/malikhezretov/autumn-frontend-mobile/node_modules/react-native/node_modules/@react-native-community/cli/build/index.js:192:9)
info Run CLI with --verbose flag for more details. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Issue and Reproduction Steps
Upgrade react native version manually using React Native Upgrade Helper from 0.64.2 to 0.66.1. Updated files
- yarn
- yarn android
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:12
Top GitHub Comments
I didn’t upgrade but I have this problem too
Same issue