728x90
반응형

React Native 69

[React Native - android] 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).

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:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:checkDebugAarMetadata'. > A failure occurred while executing com.android.build.g..

[React Native - android] This declaration is experimental and its usage must be marked with '@kotlin.ExperimentalStdlibApi' or '@OptIn(kotlin.ExperimentalStdlibApi::class)'

> Task :react-native-gradle-plugin:compileKotlin FAILED e: /Users/bok/Desktop/DEV/DEV_react-native_221129_2/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/tasks/BundleHermesCTask.kt: (137, 11): This declaration is experimental and its usage must be marked with '@kotlin.ExperimentalStdlibApi' or '@OptIn(kotlin.ExperimentalStdlibApi::class)' FAILURE: Build failed with a..

[React Native - android] Execution failed for task ':react-native-gesture-handler:compileDebugKotlin'.

* kakao login 구현 시, android > build.gradle 파일의 buildscript에 kotlin 관련 설정 후 실행 시 발생한 에러 ... e: /Users/.../Desktop/Project/TeamSogon/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNViewConfigurationHelper.kt: (22, 7): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected ve..

[React Native - android] Android Emulator에서 정상적으로 빌드된 앱이 보이지 않을 때

* Kakao login 구현 시 Android Emulator 에서 정상적으로 빌드 후 구동은 잘 되었는데 앱이 보이지 않음 # 원인 android > app > src > main > AndroidManifest.xml 에서 부분의 내용을 추가할 때 별도로 구성해 주어야 하지만, 하나로 구해주었기 때문에 발생함 # 해결 아래와 같이 하나로 구성된 를 여러 개로 분리하면 정상 동작함 ... ...

[React Native - ios] Command PhaseScriptExecution failed with a nonzero exit code

* 동일한 소스로 여러 mac에서 yarn ios 커맨드 실행 시, 특정 mac 에서만 빌드가 실패함 # 에러 내용 ... export YACC\=yacc export arch\=undefined_arch export variant\=normal /bin/sh -c /Users/.../Library/Developer/Xcode/DerivedData/.../Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-46EB2E000385F0.sh Command PhaseScriptExecution failed with a nonzero exit code ** BUILD FAILED ** The foll..

[React Native - android] Task 'bundleRelese' not found in root project '...'. Some candidates are: 'bundleRelease'.

* 여러 프로젝트를 동시에 진행하는 과정에서 abb 파일 빌드 시 발생한 에러 FAILURE: Build failed with an exception. * What went wrong: Task 'bundleRelese' not found in root project '...'. Some candidates are: 'bundleRelease'. * Try: > Run gradlew tasks to get a list of available tasks. > 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 fu..

[React Native - ios/android] VirtualizedLists should never be nested inside plain ScrollViews with the same orientation

# 현상 전체 화면이 로 감싸져 있고 내부에 가 있는 상태에서, 전체화면 스크롤을 위해 를 로 변경하자 에러 발생함 ERROR VirtualizedLists should never be nested inside plain ScrollViews with the same orientation because it can break windowing and other functionality - use another VirtualizedList-backed container instead. //before ... ... ... //after ... ... ... # 원인 의 scroll 기능과 의 scroll 기능이 충돌하여, 그 중 상위 뷰인 만 정상 작동하면서 발생한 에러 # 해결 Flatlist 상단에 V..

[React Native - android] SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at ...

* '맥북A'에서 개발하던 내용을 github 에 업로드 후, '맥북B'로 clone 하여 빌드 시 오류 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:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':app:co..

[React Native - ios] The following Swift pods cannot yet be integrated as static libraries

* Firebase 관련 수정 후 pod install --repo-update 시에 발생 # 현상 [!] The following Swift pods cannot yet be integrated as static libraries: The Swift pod `FirebaseCoreInternal` depends upon `GoogleUtilities`, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` g..

[React Native - android] Animated.View interpolate 사용 시, keyboard on/off 에 따른화면 비정상적 구현

* Animated.View 에서 interpolate 를 사용하여, 1번부터 4번까지 각 단계를 상단에 하나씩 추가하는 화면 구현. 1. 휴대폰번호 입력 2. 주민번호 입력 3. 통신사 입력 4. 이름 입력 # 현상 iOS 에서는 각 단계가 입력되었을 때 1 → 2 → 3 → 4 로 하나씩 항목이 정상적으로 추가되으나, android 에서는 1 → 2 항목 추가 시 화면의 레이아웃이 설정과 다르게 상단으로 이동함. # 해결 1 → 2 단계 이동 시 Keyboard 를 on 한 상태로 그대로 이동하였는데, 1단계가 완료되었을 때 Keyboard 를 숨기고, 2단계가 시작될 때 Keyboard를 다시 on 되도록 구성하니 해결됨. ... import { Keyboard } from 'react-nativ..

728x90
반응형