React Native 안드로이드 에러

Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform react-native-0.71.0-rc.0-debug.aar (com.facebook.react:react-native:0.71.0-rc.0) to match attributes {artifactType=android-aar-metadata, com.android.build.api.attributes.BuildTypeAttr=debug, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
  • 며칠 전 부터 일부 라이브러리를 사용하였을 때, 안드로이드로 RN 앱을 빌드하면, 에러가 발생하였다.
  • 이 에러를 해결하기 위해서는 다음과 같은 코드를 /android/build.gradle의 allprojects.repositories에 삽입한다.
       exclusiveContent {
           filter {
               includeGroup "com.facebook.react"
           }
           forRepository {
               maven {
                   url "$rootDir/../node_modules/react-native/android"
               }
           }
       }

 

 

 

참고 자료 : https://stackoverflow.com/questions/74333132/task-react-native-async-storage-async-storagegeneratedebugrfile-failed

 

Task :react-native-async-storage_async-storage:generateDebugRFile FAILED

I am having problems running my React Native application that was running fine just yesterday. Therefore I ran the command: npx react-native run-android -- --warning-mode=all Which gives informat...

stackoverflow.com

https://github.com/facebook/react-native/issues/35210

 

[READ ME] [FIX INSIDE] Android build failures happening since Nov 4th 2022 · Issue #35210 · facebook/react-native

Description Hey all, I'd like to share an update on a series of build failures React Native & Expo users have been experiencing when building Android apps starting from November 4th 2022. W...

github.com