환경 정보
"@react-navigation/native" | "6.0.10" |
"react" | "18.0.0" |
"react-native" | "0.69.0" |
"react-native-safe-area-context" | "^4.3.1" |
"react-native-screens" | "^3.13.1" |
에러 Debug
Execution failed for task ':react-native-screens:compileDebugKotlin
at makeError (/Users/-/My/RN/naviga/node_modules/execa/index.js:174:9)
at /Users/-/My/RN/naviga/node_modules/execa/index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5) at async runOnAllDevices (/Users/-/My/RN/naviga/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
at async Command.handleAction (/Users/-/My/RN/naviga/node_modules/@react-native-community/cli/build/index.js:192:9)
- 안드로이드에서 "react-native-screens" 라이브러리 설치후 안드로이드 빌드가 실패하는 이슈가 발생
핸들링
- android/build.gradle 에서 아래의 코드로 스크립트 수정
buildscript {
ext {
// ...
kotlin_version = '1.6.10' // <- add this line
}
dependencies {
// ...
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // <- add this line
// ...
}
}
Reference
react-native-screens: compileDebugKotlin Error
FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':react-native-screens:compileDebugKotlin'. Error while evaluating property 'filteredArgumentsMap' of task ':re...
stackoverflow.com
There might be incorrect information or outdated content.
'App > React Native' 카테고리의 다른 글
[React-Native] react-native-reanimated 설치 이슈 🔥 (0) | 2023.07.31 |
---|---|
[React-Native] 기본적인 빌드 이슈🔥 (0) | 2023.07.31 |