react-native
react-native copied to clipboard
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) is greater than this module's compileSdkVersion (android-30). Dependency: androidx.appcompat:appcompat:1.4.1.
Description
Please help I can't run app
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> 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.appcompat:appcompat:1.4.1.
AAR metadata file: /Users/padepokan79/.gradle/caches/transforms-3/f04c5eb52e84d3d415c26e0192e2f0e8/transformed/appcompat-1.4.1/META-INF/com/android/build/gradle/aar-metadata.properties.
Version
0.65.1
Output of npx react-native info
System:
OS: macOS 11.5.2
CPU: (8) x64 Apple M1
Memory: 19.67 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 14.18.1 - ~/.nvm/versions/node/v14.18.1/bin/node
Yarn: Not Found
npm: 6.14.15 - ~/.nvm/versions/node/v14.18.1/bin/npm
Watchman: 2022.10.17.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0
Android SDK:
API Levels: 23, 30, 31, 32, 33
Build Tools: 30.0.2, 31.0.0
System Images: android-31 | Google APIs ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 13.1/13A1030d - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_292 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.65.1 => 0.65.1
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Steps to reproduce
Just add this line of code in the app build.gradle file.
configurations.all {
resolutionStrategy {
force 'androidx.appcompat:appcompat:1.3.1'
force 'androidx.appcompat:appcompat-resources:1.3.1'
}
}
Snack, code example, screenshot, or link to a repository
https://stackoverflow.com/questions/69431006/after-update-androidx-appcompatappcompat1-4-0-beta01-build-failed
:warning: | Missing Environment Information |
---|---|
:information_source: | Your issue may be missing information about your development environment. You can obtain the missing information by running react-native info in a console. |
is my react-native info
System:
OS: macOS 11.5.2
CPU: (8) x64 Apple M1
Memory: 19.67 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 14.18.1 - ~/.nvm/versions/node/v14.18.1/bin/node
Yarn: Not Found
npm: 6.14.15 - ~/.nvm/versions/node/v14.18.1/bin/npm
Watchman: 2022.10.17.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0
Android SDK:
API Levels: 23, 30, 31, 32, 33
Build Tools: 30.0.2, 31.0.0
System Images: android-31 | Google APIs ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 13.1/13A1030d - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_292 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.65.1 => 0.65.1
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
i also have this problem
me, too.
suddenly happen
Try this. https://github.com/facebook/react-native/issues/35210#issuecomment-1306472986
My issue solved using that solution
@ydhnwb Thanks helpful
i also have this problem, any help please ?
@martosdw11 what is your react native version ?
@martosdw11 what is your react native version ?
first version 0.65.1 I follow step description this #35210 I change version 0.65.3 and install node and ./gradlew clean its work for me @tukaAlalami
To do so, in your package.json change react-native's version to the relevant new patch (ex. if you are on 0.64.3, change to 0.64.4) and run yarn install. No other changes should be necessary, but you might want to clean your android artifacts with a cd android && ./gradlew clean before trying to re-run your Android app.
I changed 0.67.2 to 0.67.5 but the error still appears.
I changed 0.67.2 to 0.67.5 but the error still appears.
- delete your node_module folder
- yarn install or npm install
- cd android && ./gradlew clean && cd ../
have you tried? @tukaAlalami
@tukaAlalami can you run this command & identify what package that try to download the androidx.appcompat:appcompat:1.4.1
cd android && ./gradlew app:dependencies
@martosdw11 yes but it does not works
@yushanwebdev no one use androidx.appcompat:appcompat:1.4.1 all packages use androidx.appcompat:appcompat:1.2.0 or androidx.appcompat:appcompat:1.3.0
@tukaAlalami can you send the full dependency tree here
+--- project :app () +--- com.google.android.gms:play-services-tagmanager:18.0.2 | +--- com.google.android.gms:play-services-ads-identifier:18.0.1 | | --- com.google.android.gms:play-services-basement:18.0.0 -> 18.1.0 | | +--- androidx.collection:collection:1.0.0 -> 1.1.0 | | | --- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | +--- androidx.core:core:1.2.0 -> 1.6.0 | | | +--- androidx.annotation:annotation:1.2.0 | | | +--- androidx.annotation:annotation-experimental:1.1.0 | | | +--- androidx.lifecycle:lifecycle-runtime:2.0.0 -> 2.3.1 | | | | +--- androidx.arch.core:core-runtime:2.1.0 | | | | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | | | | --- androidx.arch.core:core-common:2.1.0 | | | | | --- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | | | +--- androidx.lifecycle:lifecycle-common:2.3.1 | | | | | --- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | | | +--- androidx.arch.core:core-common:2.1.0 () | | | | --- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | | +--- androidx.versionedparcelable:versionedparcelable:1.1.1 | | | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | | | --- androidx.collection:collection:1.0.0 -> 1.1.0 () | | | --- androidx.collection:collection:1.0.0 -> 1.1.0 () | | --- androidx.fragment:fragment:1.0.0 -> 1.3.2 | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | +--- androidx.core:core:1.1.0 -> 1.6.0 () | | +--- androidx.collection:collection:1.1.0 () | | +--- androidx.viewpager:viewpager:1.0.0 | | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0 | | | +--- androidx.core:core:1.0.0 -> 1.6.0 () | | | --- androidx.customview:customview:1.0.0 | | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0 | | | --- androidx.core:core:1.0.0 -> 1.6.0 () | | +--- androidx.loader:loader:1.0.0 | | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0 | | | +--- androidx.core:core:1.0.0 -> 1.6.0 () | | | +--- androidx.lifecycle:lifecycle-livedata:2.0.0 -> 2.1.0 | | | | +--- androidx.arch.core:core-runtime:2.1.0 () | | | | +--- androidx.lifecycle:lifecycle-livedata-core:2.1.0 -> 2.3.1 | | | | | +--- androidx.arch.core:core-common:2.1.0 () | | | | | +--- androidx.arch.core:core-runtime:2.1.0 () | | | | | --- androidx.lifecycle:lifecycle-common:2.3.1 () | | | | --- androidx.arch.core:core-common:2.1.0 () | | | --- androidx.lifecycle:lifecycle-viewmodel:2.0.0 -> 2.3.1 | | | --- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | +--- androidx.activity:activity:1.2.2 | | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | | +--- androidx.core:core:1.1.0 -> 1.6.0 () | | | +--- androidx.lifecycle:lifecycle-runtime:2.3.1 () | | | +--- androidx.lifecycle:lifecycle-viewmodel:2.3.1 () | | | +--- androidx.savedstate:savedstate:1.1.0 | | | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | | | +--- androidx.arch.core:core-common:2.0.1 -> 2.1.0 () | | | | --- androidx.lifecycle:lifecycle-common:2.0.0 -> 2.3.1 () | | | +--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.3.1 | | | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0 | | | | +--- androidx.savedstate:savedstate:1.1.0 () | | | | +--- androidx.lifecycle:lifecycle-livedata-core:2.3.1 () | | | | --- androidx.lifecycle:lifecycle-viewmodel:2.3.1 () | | | +--- androidx.collection:collection:1.0.0 -> 1.1.0 () | | | --- androidx.tracing:tracing:1.0.0 | | | --- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | +--- androidx.lifecycle:lifecycle-livedata-core:2.3.1 () | | +--- androidx.lifecycle:lifecycle-viewmodel:2.3.1 () | | +--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.3.1 () | | +--- androidx.savedstate:savedstate:1.1.0 () | | --- androidx.annotation:annotation-experimental:1.0.0 -> 1.1.0 | +--- com.google.android.gms:play-services-analytics-impl:18.0.2 | | +--- com.google.android.gms:play-services-ads-identifier:18.0.1 () | | +--- com.google.android.gms:play-services-base:18.0.1 | | | +--- androidx.collection:collection:1.0.0 -> 1.1.0 () | | | +--- androidx.core:core:1.2.0 -> 1.6.0 () | | | +--- androidx.fragment:fragment:1.0.0 -> 1.3.2 () | | | +--- com.google.android.gms:play-services-basement:18.0.0 -> 18.1.0 () | | | --- com.google.android.gms:play-services-tasks:18.0.1 | | | --- com.google.android.gms:play-services-basement:18.0.0 -> 18.1.0 () | | +--- com.google.android.gms:play-services-basement:18.1.0 () | | --- com.google.android.gms:play-services-stats:17.0.3 | | +--- androidx.legacy:legacy-support-core-utils:1.0.0 | | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0 | | | +--- androidx.core:core:1.0.0 -> 1.6.0 () | | | +--- androidx.documentfile:documentfile:1.0.0 | | | | --- androidx.annotation:annotation:1.0.0 -> 1.2.0 | | | +--- androidx.loader:loader:1.0.0 () | | | +--- androidx.localbroadcastmanager:localbroadcastmanager:1.0.0 | | | | --- androidx.annotation:annotation:1.0.0 -> 1.2.0 | | | --- androidx.print:print:1.0.0 | | | --- androidx.annotation:annotation:1.0.0 -> 1.2.0 | | --- com.google.android.gms:play-services-basement:18.0.0 -> 18.1.0 () | +--- com.google.android.gms:play-services-basement:18.1.0 () | +--- com.google.android.gms:play-services-stats:17.0.3 () | --- com.google.android.gms:play-services-tagmanager-api:18.0.2 | +--- com.google.android.gms:play-services-analytics-impl:18.0.2 () | +--- com.google.android.gms:play-services-basement:18.1.0 () | +--- com.google.android.gms:play-services-measurement:20.0.1 -> 21.0.0 | | +--- androidx.collection:collection:1.0.0 -> 1.1.0 () | | +--- androidx.legacy:legacy-support-core-utils:1.0.0 () | | +--- com.google.android.gms:play-services-ads-identifier:18.0.0 -> 18.0.1 () | | +--- com.google.android.gms:play-services-basement:18.0.0 -> 18.1.0 () | | +--- com.google.android.gms:play-services-measurement-base:21.0.0 | | | --- com.google.android.gms:play-services-basement:18.0.0 -> 18.1.0 () | | +--- com.google.android.gms:play-services-measurement-impl:21.0.0 | | | +--- androidx.collection:collection:1.0.0 -> 1.1.0 () | | | +--- androidx.core:core:1.0.0 -> 1.6.0 () | | | +--- com.google.android.gms:play-services-ads-identifier:18.0.0 -> 18.0.1 () | | | +--- com.google.android.gms:play-services-basement:18.0.0 -> 18.1.0 () | | | +--- com.google.android.gms:play-services-measurement-base:21.0.0 () | | | --- com.google.android.gms:play-services-stats:17.0.2 -> 17.0.3 () | | --- com.google.android.gms:play-services-stats:17.0.2 -> 17.0.3 () | +--- com.google.android.gms:play-services-measurement-api:20.0.1 -> 21.0.0 | | +--- com.google.android.gms:play-services-ads-identifier:18.0.0 -> 18.0.1 () | | +--- com.google.android.gms:play-services-basement:18.0.0 -> 18.1.0 () | | +--- com.google.android.gms:play-services-measurement-base:21.0.0 () | | +--- com.google.android.gms:play-services-measurement-sdk-api:21.0.0 | | | +--- com.google.android.gms:play-services-basement:18.0.0 -> 18.1.0 () | | | --- com.google.android.gms:play-services-measurement-base:21.0.0 () | | +--- com.google.android.gms:play-services-tasks:18.0.1 () | | +--- com.google.firebase:firebase-common:20.1.0 -> 20.1.1 | | | +--- com.google.android.gms:play-services-basement:18.0.0 -> 18.1.0 () | | | +--- com.google.android.gms:play-services-tasks:18.0.1 () | | | --- com.google.firebase:firebase-components:17.0.0 | | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | | --- com.google.firebase:firebase-annotations:16.0.0 | | +--- com.google.firebase:firebase-components:17.0.0 () | | +--- com.google.firebase:firebase-installations:17.0.1 | | | +--- com.google.android.gms:play-services-tasks:18.0.1 () | | | +--- com.google.firebase:firebase-common:20.1.0 -> 20.1.1 () | | | +--- com.google.firebase:firebase-components:17.0.0 () | | | --- com.google.firebase:firebase-installations-interop:17.0.1 | | | +--- com.google.android.gms:play-services-tasks:18.0.1 () | | | --- com.google.firebase:firebase-annotations:16.0.0 | | +--- com.google.firebase:firebase-installations-interop:17.0.0 -> 17.0.1 () | | --- com.google.firebase:firebase-measurement-connector:19.0.0 | | +--- com.google.android.gms:play-services-basement:17.0.0 -> 18.1.0 () | | --- com.google.firebase:firebase-annotations:16.0.0 | +--- com.google.android.gms:play-services-measurement-base:20.0.1 -> 21.0.0 () | +--- com.google.android.gms:play-services-measurement-impl:20.0.1 -> 21.0.0 () | +--- com.google.android.gms:play-services-measurement-sdk:20.0.1 -> 21.0.0 | | +--- androidx.collection:collection:1.0.0 -> 1.1.0 () | | +--- com.google.android.gms:play-services-basement:18.0.0 -> 18.1.0 () | | +--- com.google.android.gms:play-services-measurement-base:21.0.0 () | | --- com.google.android.gms:play-services-measurement-impl:21.0.0 () | --- com.google.firebase:firebase-analytics:20.0.1 -> 21.0.0 | +--- com.google.android.gms:play-services-measurement:21.0.0 () | +--- com.google.android.gms:play-services-measurement-api:21.0.0 () | --- com.google.android.gms:play-services-measurement-sdk:21.0.0 () +--- com.facebook.react:react-native:+ -> 0.67.5 | +--- com.facebook.infer.annotation:infer-annotation:0.18.0 | | +--- com.google.code.findbugs:jsr305:3.0.1 -> 3.0.2 | | --- org.jetbrains.kotlin:kotlin-annotations-jvm:1.3.72 | +--- com.facebook.yoga:proguard-annotations:1.19.0 | +--- javax.inject:javax.inject:1 | +--- androidx.appcompat:appcompat:1.0.2 -> 1.2.0 | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | +--- androidx.core:core:1.3.0 -> 1.6.0 () | | +--- androidx.cursoradapter:cursoradapter:1.0.0 | | | --- androidx.annotation:annotation:1.0.0 -> 1.2.0 | | +--- androidx.fragment:fragment:1.1.0 -> 1.3.2 () | | +--- androidx.appcompat:appcompat-resources:1.2.0 | | | +--- androidx.collection:collection:1.0.0 -> 1.1.0 () | | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | | +--- androidx.core:core:1.0.1 -> 1.6.0 () | | | +--- androidx.vectordrawable:vectordrawable:1.1.0 | | | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | | | +--- androidx.core:core:1.1.0 -> 1.6.0 () | | | | --- androidx.collection:collection:1.1.0 () | | | --- androidx.vectordrawable:vectordrawable-animated:1.1.0 | | | +--- androidx.vectordrawable:vectordrawable:1.1.0 () | | | +--- androidx.interpolator:interpolator:1.0.0 | | | | --- androidx.annotation:annotation:1.0.0 -> 1.2.0 | | | --- androidx.collection:collection:1.1.0 () | | +--- androidx.drawerlayout:drawerlayout:1.0.0 | | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0 | | | +--- androidx.core:core:1.0.0 -> 1.6.0 () | | | --- androidx.customview:customview:1.0.0 () | | --- androidx.collection:collection:1.0.0 -> 1.1.0 () | +--- androidx.autofill:autofill:1.1.0 | | --- androidx.core:core:1.1.0 -> 1.6.0 () | +--- androidx.swiperefreshlayout:swiperefreshlayout:1.0.0 | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0 | | +--- androidx.core:core:1.0.0 -> 1.6.0 () | | --- androidx.interpolator:interpolator:1.0.0 () | +--- com.facebook.fresco:fresco:2.5.0 | | +--- com.facebook.fresco:soloader:2.5.0 | | | +--- com.facebook.fresco:fbcore:2.5.0 | | | --- com.facebook.soloader:soloader:0.10.1 | | | +--- com.facebook.soloader:annotation:0.10.1 | | | --- com.facebook.soloader:nativeloader:0.10.1 | | +--- com.facebook.soloader:nativeloader:0.10.1 | | +--- com.facebook.fresco:ui-common:2.5.0 | | | --- com.facebook.fresco:fbcore:2.5.0 | | +--- com.facebook.fresco:fbcore:2.5.0 | | +--- com.facebook.fresco:drawee:2.5.0 | | | +--- com.facebook.fresco:fbcore:2.5.0 | | | +--- com.facebook.fresco:imagepipeline:2.5.0 | | | | +--- com.facebook.soloader:nativeloader:0.10.1 | | | | +--- com.facebook.soloader:annotation:0.10.1 | | | | +--- com.parse.bolts:bolts-tasks:1.4.0 | | | | +--- com.facebook.fresco:fbcore:2.5.0 | | | | --- com.facebook.fresco:imagepipeline-base:2.5.0 | | | | +--- com.facebook.infer.annotation:infer-annotation:0.18.0 () | | | | +--- com.facebook.soloader:annotation:0.10.1 | | | | +--- com.parse.bolts:bolts-tasks:1.4.0 | | | | --- com.facebook.fresco:fbcore:2.5.0 | | | +--- com.facebook.fresco:imagepipeline-native:2.5.0 | | | | +--- com.facebook.fresco:imagepipeline:2.5.0 () | | | | +--- com.facebook.fresco:fbcore:2.5.0 | | | | --- com.facebook.soloader:soloader:0.10.1 () | | | +--- com.facebook.fresco:memory-type-ashmem:2.5.0 | | | | +--- com.facebook.fresco:fbcore:2.5.0 | | | | --- com.facebook.fresco:imagepipeline:2.5.0 () | | | +--- com.facebook.fresco:memory-type-native:2.5.0 | | | | +--- com.facebook.fresco:fbcore:2.5.0 | | | | +--- com.facebook.fresco:imagepipeline:2.5.0 () | | | | +--- com.facebook.fresco:imagepipeline-native:2.5.0 () | | | | --- com.facebook.soloader:nativeloader:0.10.1 | | | +--- com.facebook.fresco:memory-type-java:2.5.0 | | | | +--- com.facebook.fresco:fbcore:2.5.0 | | | | +--- com.facebook.fresco:imagepipeline:2.5.0 () | | | | --- com.facebook.fresco:imagepipeline-native:2.5.0 () | | | +--- com.facebook.fresco:ui-common:2.5.0 () | | | --- com.facebook.fresco:middleware:2.5.0 | | | +--- com.facebook.fresco:fbcore:2.5.0 | | | --- com.facebook.fresco:ui-common:2.5.0 () | | +--- com.facebook.fresco:imagepipeline:2.5.0 () | | +--- com.facebook.fresco:imagepipeline-native:2.5.0 () | | +--- com.facebook.fresco:memory-type-ashmem:2.5.0 () | | +--- com.facebook.fresco:memory-type-native:2.5.0 () | | +--- com.facebook.fresco:memory-type-java:2.5.0 () | | +--- com.facebook.fresco:nativeimagefilters:2.5.0 | | | +--- com.facebook.fresco:imagepipeline:2.5.0 () | | | +--- com.facebook.fresco:imagepipeline-native:2.5.0 () | | | +--- com.facebook.fresco:memory-type-ashmem:2.5.0 () | | | +--- com.facebook.fresco:memory-type-native:2.5.0 () | | | +--- com.facebook.fresco:memory-type-java:2.5.0 () | | | +--- com.facebook.soloader:nativeloader:0.10.1 | | | +--- com.parse.bolts:bolts-tasks:1.4.0 | | | --- com.facebook.fresco:fbcore:2.5.0 | | --- com.facebook.fresco:nativeimagetranscoder:2.5.0 | | +--- com.facebook.fresco:imagepipeline-base:2.5.0 () | | +--- com.facebook.soloader:nativeloader:0.10.1 | | +--- com.parse.bolts:bolts-tasks:1.4.0 | | --- com.facebook.fresco:fbcore:2.5.0 | +--- com.facebook.fresco:imagepipeline-okhttp3:2.5.0 | | +--- com.facebook.fresco:fbcore:2.5.0 | | +--- com.facebook.fresco:imagepipeline:2.5.0 () | | +--- com.facebook.fresco:imagepipeline-native:2.5.0 () | | +--- com.facebook.fresco:memory-type-ashmem:2.5.0 () | | +--- com.facebook.fresco:memory-type-native:2.5.0 () | | +--- com.facebook.fresco:memory-type-java:2.5.0 () | | --- com.squareup.okhttp3:okhttp:3.12.1 -> 4.9.2 | | +--- com.squareup.okio:okio:2.8.0 -> 2.9.0 | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.4.10 -> 1.5.31 | | | | +--- org.jetbrains:annotations:13.0 | | | | --- org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31 | | | --- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.10 -> 1.5.31 | | --- org.jetbrains.kotlin:kotlin-stdlib:1.4.10 -> 1.5.31 () | +--- com.facebook.fresco:ui-common:2.5.0 () | +--- com.facebook.soloader:soloader:0.10.1 () | +--- com.google.code.findbugs:jsr305:3.0.2 | +--- com.squareup.okhttp3:okhttp:4.9.2 () | +--- com.squareup.okhttp3:okhttp-urlconnection:4.9.2 | | +--- com.squareup.okhttp3:okhttp:4.9.2 () | | --- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.10 | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.4.10 -> 1.5.31 () | | --- org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4.10 | | --- org.jetbrains.kotlin:kotlin-stdlib:1.4.10 -> 1.5.31 () | +--- com.squareup.okio:okio:2.9.0 () | --- com.facebook.fbjni:fbjni-java-only:0.2.2 | --- com.facebook.soloader:nativeloader:0.10.1 +--- com.google.firebase:firebase-analytics:19.0.0 -> 21.0.0 () +--- androidx.swiperefreshlayout:swiperefreshlayout:1.0.0 () +--- com.google.android.gms:play-services-base:17.2.1 -> 18.0.1 () +--- com.google.android.gms:play-services-maps:17.0.0 | +--- androidx.fragment:fragment:1.0.0 -> 1.3.2 () | +--- com.google.android.gms:play-services-base:17.0.0 -> 18.0.1 () | --- com.google.android.gms:play-services-basement:17.0.0 -> 18.1.0 () +--- org.webkit:android-jsc:+ -> r250230 +--- project :invertase_react-native-apple-authentication | +--- com.facebook.react:react-native:+ -> 0.67.5 () | +--- org.jetbrains.kotlin:kotlin-stdlib:1.5.31 () | +--- androidx.core:core-ktx:1.3.0 -> 1.6.0 | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.5.10 -> 1.5.31 () | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | --- androidx.core:core:1.6.0 () | --- androidx.fragment:fragment:1.3.2 () +--- project :react-native-community_async-storage | --- com.facebook.react:react-native:+ -> 0.67.5 () +--- project :react-native-community_datetimepicker | --- com.facebook.react:react-native:+ -> 0.67.5 () +--- project :react-native-community_netinfo | --- com.facebook.react:react-native:+ -> 0.67.5 () +--- project :react-native-firebase_analytics | +--- project :react-native-firebase_app | | +--- com.facebook.react:react-native:+ -> 0.67.5 () | | +--- com.google.firebase:firebase-bom:30.1.0 | | | +--- com.google.firebase:firebase-crashlytics-ndk:18.2.11 (c) | | | +--- com.google.firebase:firebase-analytics:21.0.0 (c) | | | +--- com.google.firebase:firebase-messaging:23.0.5 (c) | | | +--- com.google.firebase:firebase-crashlytics:18.2.11 (c) | | | +--- com.google.firebase:firebase-common:20.1.1 (c) | | | +--- com.google.firebase:firebase-encoders:17.0.0 (c) | | | --- com.google.firebase:firebase-installations:17.0.1 (c) | | +--- com.google.firebase:firebase-common -> 20.1.1 () | | --- com.google.android.gms:play-services-auth:20.2.0 | | +--- androidx.fragment:fragment:1.0.0 -> 1.3.2 () | | +--- androidx.loader:loader:1.0.0 () | | +--- com.google.android.gms:play-services-auth-api-phone:18.0.1 | | | +--- com.google.android.gms:play-services-base:18.0.1 () | | | +--- com.google.android.gms:play-services-basement:18.0.0 -> 18.1.0 () | | | --- com.google.android.gms:play-services-tasks:18.0.1 () | | +--- com.google.android.gms:play-services-auth-base:18.0.1 | | | +--- androidx.collection:collection:1.0.0 -> 1.1.0 () | | | +--- com.google.android.gms:play-services-base:18.0.1 () | | | +--- com.google.android.gms:play-services-basement:18.0.0 -> 18.1.0 () | | | --- com.google.android.gms:play-services-tasks:18.0.1 () | | +--- com.google.android.gms:play-services-base:18.0.1 () | | +--- com.google.android.gms:play-services-basement:18.0.0 -> 18.1.0 () | | --- com.google.android.gms:play-services-tasks:18.0.1 () | +--- com.facebook.react:react-native:+ -> 0.67.5 () | +--- com.google.firebase:firebase-bom:30.1.0 () | --- com.google.firebase:firebase-analytics -> 21.0.0 () +--- project :react-native-firebase_app () +--- project :react-native-firebase_crashlytics | +--- project :react-native-firebase_app () | +--- com.facebook.react:react-native:+ -> 0.67.5 () | +--- com.google.firebase:firebase-bom:30.1.0 () | +--- com.google.firebase:firebase-crashlytics -> 18.2.11 | | +--- com.google.android.datatransport:transport-api:3.0.0 | | | --- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | +--- com.google.android.datatransport:transport-backend-cct:3.1.5 | | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | | +--- com.google.android.datatransport:transport-api:3.0.0 () | | | +--- com.google.android.datatransport:transport-runtime:3.1.5 | | | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | | | +--- com.google.android.datatransport:transport-api:3.0.0 () | | | | +--- com.google.firebase:firebase-encoders:17.0.0 | | | | | --- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | | | +--- com.google.firebase:firebase-encoders-proto:16.0.0 | | | | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | | | | --- com.google.firebase:firebase-encoders:17.0.0 () | | | | --- javax.inject:javax.inject:1 | | | +--- com.google.firebase:firebase-encoders:17.0.0 () | | | --- com.google.firebase:firebase-encoders-json:18.0.0 | | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | | --- com.google.firebase:firebase-encoders:17.0.0 () | | +--- com.google.android.datatransport:transport-runtime:3.1.5 () | | +--- com.google.android.gms:play-services-tasks:18.0.1 () | | +--- com.google.firebase:firebase-annotations:16.0.0 | | +--- com.google.firebase:firebase-common:20.1.1 () | | +--- com.google.firebase:firebase-components:17.0.0 () | | +--- com.google.firebase:firebase-encoders:17.0.0 () | | +--- com.google.firebase:firebase-encoders-json:18.0.0 () | | +--- com.google.firebase:firebase-installations:17.0.1 () | | +--- com.google.firebase:firebase-installations-interop:17.0.1 () | | --- com.google.firebase:firebase-measurement-connector:18.0.2 -> 19.0.0 () | --- com.google.firebase:firebase-crashlytics-ndk -> 18.2.11 | +--- com.google.android.gms:play-services-basement:18.0.0 -> 18.1.0 () | +--- com.google.firebase:firebase-common:20.1.1 () | +--- com.google.firebase:firebase-components:17.0.0 () | --- com.google.firebase:firebase-crashlytics:18.2.11 () +--- project :react-native-firebase_messaging | +--- project :react-native-firebase_app () | +--- com.facebook.react:react-native:+ -> 0.67.5 () | +--- com.google.firebase:firebase-bom:30.1.0 () | --- com.google.firebase:firebase-messaging -> 23.0.5 | +--- androidx.annotation:annotation:1.2.0 | +--- com.google.android.datatransport:transport-api:3.0.0 () | +--- com.google.android.datatransport:transport-backend-cct:3.1.5 () | +--- com.google.android.datatransport:transport-runtime:3.1.5 () | +--- com.google.android.gms:play-services-base:18.0.1 () | +--- com.google.android.gms:play-services-basement:18.0.0 -> 18.1.0 () | +--- com.google.android.gms:play-services-cloud-messaging:17.0.1 | | +--- com.google.android.gms:play-services-basement:18.0.0 -> 18.1.0 () | | --- com.google.android.gms:play-services-tasks:18.0.0 -> 18.0.1 () | +--- com.google.android.gms:play-services-stats:17.0.2 -> 17.0.3 () | +--- com.google.android.gms:play-services-tasks:18.0.1 () | +--- com.google.errorprone:error_prone_annotations:2.9.0 | +--- com.google.firebase:firebase-common:20.1.1 () | +--- com.google.firebase:firebase-components:17.0.0 () | +--- com.google.firebase:firebase-datatransport:18.1.4 | | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | +--- com.google.android.datatransport:transport-api:3.0.0 () | | +--- com.google.android.datatransport:transport-backend-cct:3.1.5 () | | +--- com.google.android.datatransport:transport-runtime:3.1.5 () | | +--- com.google.firebase:firebase-common:20.1.1 () | | --- com.google.firebase:firebase-components:17.0.0 () | +--- com.google.firebase:firebase-encoders:17.0.0 () | +--- com.google.firebase:firebase-encoders-json:18.0.0 () | +--- com.google.firebase:firebase-encoders-proto:16.0.0 () | +--- com.google.firebase:firebase-iid-interop:17.1.0 | | +--- com.google.android.gms:play-services-basement:17.0.0 -> 18.1.0 () | | --- com.google.android.gms:play-services-tasks:17.0.0 -> 18.0.1 () | +--- com.google.firebase:firebase-installations:17.0.1 () | +--- com.google.firebase:firebase-installations-interop:17.0.1 () | --- com.google.firebase:firebase-measurement-connector:19.0.0 () +--- project :react-native-google-signin_google-signin | +--- com.facebook.react:react-native:+ -> 0.67.5 () | --- com.google.android.gms:play-services-auth:19.2.0 -> 20.2.0 () +--- project :react-native-picker_picker | --- com.facebook.react:react-native:+ -> 0.67.5 () +--- project :react-native-device-info | +--- com.facebook.react:react-native:+ -> 0.67.5 () | +--- com.android.installreferrer:installreferrer:1.1.2 | --- com.google.android.gms:play-services-iid:17.0.0 | +--- androidx.collection:collection:1.0.0 -> 1.1.0 () | +--- androidx.core:core:1.0.0 -> 1.6.0 () | +--- com.google.android.gms:play-services-base:17.0.0 -> 18.0.1 () | +--- com.google.android.gms:play-services-basement:17.0.0 -> 18.1.0 () | +--- com.google.android.gms:play-services-stats:17.0.0 -> 17.0.3 () | --- com.google.android.gms:play-services-tasks:17.0.0 -> 18.0.1 () +--- project :react-native-fast-image | +--- com.facebook.react:react-native:+ -> 0.67.5 () | +--- com.github.bumptech.glide:glide:4.12.0 | | +--- com.github.bumptech.glide:gifdecoder:4.12.0 | | | --- androidx.annotation:annotation:1.0.0 -> 1.2.0 | | +--- com.github.bumptech.glide:disklrucache:4.12.0 | | +--- com.github.bumptech.glide:annotations:4.12.0 | | +--- androidx.fragment:fragment:1.0.0 -> 1.3.2 () | | +--- androidx.vectordrawable:vectordrawable-animated:1.0.0 -> 1.1.0 () | | --- androidx.exifinterface:exifinterface:1.2.0 | | --- androidx.annotation:annotation:1.1.0 -> 1.2.0 | --- com.github.bumptech.glide:okhttp3-integration:4.12.0 | +--- com.github.bumptech.glide:glide:4.12.0 () | +--- com.squareup.okhttp3:okhttp:3.9.1 -> 4.9.2 () | --- androidx.annotation:annotation:1.0.0 -> 1.2.0 +--- project :react-native-fetch-blob | --- com.facebook.react:react-native:+ -> 0.67.5 () +--- project :react-native-gesture-handler | +--- com.facebook.react:react-native:+ -> 0.67.5 () | +--- androidx.appcompat:appcompat:1.2.0 () | +--- androidx.core:core-ktx:1.6.0 () | --- org.jetbrains.kotlin:kotlin-stdlib:1.5.31 () +--- project :react-native-i18n | --- com.facebook.react:react-native:+ -> 0.67.5 () +--- project :react-native-maps | +--- com.android.support:appcompat-v7:28.0.0 -> androidx.appcompat:appcompat:1.2.0 () | +--- com.facebook.react:react-native:+ -> 0.67.5 () | +--- com.google.android.gms:play-services-base:17.0.0 -> 18.0.1 () | +--- com.google.android.gms:play-services-maps:17.0.0 () | +--- com.google.android.gms:play-services-location:17.0.0 | | +--- com.google.android.gms:play-services-base:17.0.0 -> 18.0.1 () | | +--- com.google.android.gms:play-services-basement:17.0.0 -> 18.1.0 () | | +--- com.google.android.gms:play-services-places-placereport:17.0.0 | | | --- com.google.android.gms:play-services-basement:17.0.0 -> 18.1.0 () | | --- com.google.android.gms:play-services-tasks:17.0.0 -> 18.0.1 () | +--- com.google.maps.android:android-maps-utils:0.5 | --- androidx.work:work-runtime:2.5.0 | +--- com.google.guava:listenablefuture:1.0 | +--- androidx.lifecycle:lifecycle-livedata:2.1.0 () | +--- androidx.room:room-runtime:2.2.5 | | +--- androidx.room:room-common:2.2.5 | | | --- androidx.annotation:annotation:1.1.0 -> 1.2.0 | | +--- androidx.sqlite:sqlite-framework:2.0.1 -> 2.1.0 | | | +--- androidx.annotation:annotation:1.0.0 -> 1.2.0 | | | --- androidx.sqlite:sqlite:2.1.0 | | | --- androidx.annotation:annotation:1.0.0 -> 1.2.0 | | +--- androidx.sqlite:sqlite:2.0.1 -> 2.1.0 () | | --- androidx.arch.core:core-runtime:2.0.1 -> 2.1.0 () | +--- androidx.sqlite:sqlite:2.1.0 () | +--- androidx.sqlite:sqlite-framework:2.1.0 () | +--- androidx.core:core:1.1.0 -> 1.6.0 () | --- androidx.lifecycle:lifecycle-service:2.1.0 | --- androidx.lifecycle:lifecycle-runtime:2.1.0 -> 2.3.1 () +--- project :react-native-navigation +--- project :react-native-push-notification | +--- com.android.support:appcompat-v7:27.1.1 -> androidx.appcompat:appcompat:1.2.0 () | +--- com.facebook.react:react-native:+ -> 0.67.5 () | +--- me.leolin:ShortcutBadger:1.1.22 | --- com.google.firebase:firebase-messaging:21.1.0 -> 23.0.5 () +--- project :react-native-restart | --- com.facebook.react:react-native:+ -> 0.67.5 () +--- project :react-native-spinkit | +--- com.facebook.react:react-native:+ -> 0.67.5 () | --- com.github.ybq:Android-SpinKit:1.4.0 +--- project :react-native-splash-screen | +--- com.android.support:appcompat-v7:26.1.0 -> androidx.appcompat:appcompat:1.2.0 () | --- com.facebook.react:react-native:+ -> 0.67.5 () +--- project :react-native-svg | --- com.facebook.react:react-native:+ -> 0.67.5 () +--- project :react-native-toasty | +--- com.facebook.react:react-native:+ -> 0.67.5 () | --- com.github.GrenderG:Toasty:1.5.0 | --- androidx.appcompat:appcompat:1.2.0 () +--- project :react-native-vector-icons | --- com.facebook.react:react-native:+ -> 0.67.5 () +--- project :react-native-webview | +--- com.facebook.react:react-native:+ -> 0.67.5 () | +--- org.jetbrains.kotlin:kotlin-stdlib:1.5.31 () | --- androidx.webkit:webkit:1.4.0 | +--- androidx.annotation:annotation:1.1.0 -> 1.2.0 | --- androidx.core:core:1.1.0 -> 1.6.0 () --- project :react-native-wheel-pick +--- com.github.AigeStudio:WheelPicker:5913fa15fc | --- com.google.code.gson:gson:2.8.2 --- com.facebook.react:react-native:+ -> 0.67.5 ()
yeah @tukaAlalami this seems a cache issue. There several methods to clean the Android Studio Cache. Try to do them.
i clean the cache , but i will look if there is another way , thank you
same error.
same error, don't know what's happening
i have this error "Execution failed for task ':react-native-navigation:compileReactNative63DebugKotlin'." after i upgrade from react native .0.67.2 to 0.67.5 any help ?
Same Issue, Any Solution ?
Clearing cache is not resolving the issue
Made it work without upgrading react-native version and by adding this in build.gradle, this works (hermes enabled or not, along with flipper too)
exclusiveContent {
// We get React Native's Android binaries exclusively through npm,
// from a local Maven repo inside node_modules/react-native/.
// (The use of exclusiveContent prevents looking elsewhere like Maven Central
// and potentially getting a wrong version.)
filter {
includeGroup "com.facebook.react"
}
forRepository {
maven {
url "$rootDir/../node_modules/react-native/android"
}
}
}
final snippet looks like this
allprojects {
repositories {
exclusiveContent {
// We get React Native's Android binaries exclusively through npm,
// from a local Maven repo inside node_modules/react-native/.
// (The use of exclusiveContent prevents looking elsewhere like Maven Central
// and potentially getting a wrong version.)
filter {
includeGroup "com.facebook.react"
}
forRepository {
maven {
url "$rootDir/../node_modules/react-native/android"
}
}
}
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
gradle clean and rebuild after this fix.
Either you can upgrade to react-native patch releases as mentioned here https://github.com/facebook/react-native/issues/35210
Made it work without upgrading react-native version and by adding this in build.gradle, this works (hermes enabled or not, along with flipper too)
exclusiveContent { // We get React Native's Android binaries exclusively through npm, // from a local Maven repo inside node_modules/react-native/. // (The use of exclusiveContent prevents looking elsewhere like Maven Central // and potentially getting a wrong version.) filter { includeGroup "com.facebook.react" } forRepository { maven { url "$rootDir/../node_modules/react-native/android" } } }
final snippet looks like this
allprojects { repositories { exclusiveContent { // We get React Native's Android binaries exclusively through npm, // from a local Maven repo inside node_modules/react-native/. // (The use of exclusiveContent prevents looking elsewhere like Maven Central // and potentially getting a wrong version.) filter { includeGroup "com.facebook.react" } forRepository { maven { url "$rootDir/../node_modules/react-native/android" } } } maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url("$rootDir/../node_modules/react-native/android")
gradle clean and rebuild after this fix.
Either you can upgrade to react-native patch releases as mentioned here #35210
This Method worked for me thanks bro.
Made it work without upgrading react-native version and by adding this in build.gradle, this works (hermes enabled or not, along with flipper too)
exclusiveContent { // We get React Native's Android binaries exclusively through npm, // from a local Maven repo inside node_modules/react-native/. // (The use of exclusiveContent prevents looking elsewhere like Maven Central // and potentially getting a wrong version.) filter { includeGroup "com.facebook.react" } forRepository { maven { url "$rootDir/../node_modules/react-native/android" } } }
final snippet looks like this
allprojects { repositories { exclusiveContent { // We get React Native's Android binaries exclusively through npm, // from a local Maven repo inside node_modules/react-native/. // (The use of exclusiveContent prevents looking elsewhere like Maven Central // and potentially getting a wrong version.) filter { includeGroup "com.facebook.react" } forRepository { maven { url "$rootDir/../node_modules/react-native/android" } } } maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url("$rootDir/../node_modules/react-native/android")
gradle clean and rebuild after this fix.
Either you can upgrade to react-native patch releases as mentioned here #35210
Worked for me thanks bro