root layout

패스트캠퍼스

오류 확인 부탁드립니다.

2025.01.23 17:52 수정


Caused by: org.jetbrains.kotlin.gradle.tasks.CompilationErrorException: Compilation error. See log for more details

> Task :react-native-safe-area-context:compileDebugKotlin FAILED

e: /MyApp/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextPackage.kt:3:27 Unresolved reference: BaseReactPackage

e: /MyApp/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextPackage.kt:13:32 Unresolved reference: BaseReactPackage

e: /MyApp/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextPackage.kt:14:3 'getModule' overrides nothing

e: /MyApp/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextPackage.kt:21:3 'getReactModuleInfoProvider' overrides nothing

e: /MyApp/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextPackage.kt:38:3 'createViewManagers' overrides nothing


안드로이드에서 실행하면 위와 같은 오류가 발생하네요.


버전문제인것 같아서 찾아봐도 해결이 되지 않네요..

확인 좀 부탁드릴게요.

MacOS 15.0



#Gemfile

gem 'cocoapods', '>= 1.13', '< 1.15'

gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'

gem 'xcodeproj', '1.25.1'

gem "fastlane"



#package.json

"@react-native-firebase/app": "^21.7.1",

"@react-native-firebase/messaging": "^21.7.1",

"@react-navigation/native": "^6.1.18",

"@react-navigation/native-stack": "^6.11.0",

"hermes-engine": "^0.11.0",

"react": "18.2.0",

"react-native": "0.73.6",

"react-native-pager-view": "^6.4.1",

"react-native-safe-area-context": "^5.1.0",

"react": "18.2.0",

"react-native": "0.73.6",



#build.gradle

buildscript {

ext {

buildToolsVersion = "34.0.0"

minSdkVersion = 21

compileSdkVersion = 34

targetSdkVersion = 34

ndkVersion = "25.1.8937393"

kotlinVersion = "1.9.0"

}

repositories {

google()

mavenCentral()

}

dependencies {

classpath("com.android.tools.build:gradle")

classpath("com.facebook.react:react-native-gradle-plugin")

classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")

classpath("com.google.gms:google-services:4.4.2")

}

}

apply plugin: "com.facebook.react.rootproject"



답변 

연관 질문

커뮤니티 질문보기