728x90

React Native/React Native_error 58

[React Native - android/ios] [MobX] Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: ObservableValue

mobx 버전을 5.15.4 --> 6.7.0 으로 업그레이드 했을 시 발생. @action 이 정상적으로 동작하지 않아 기존에 사용하던 로직을 모두 수정해야함 다시 5.15.4로 다운그레이드 하니 정상 동작함 * reference : https://stackoverflow.com/a/64771774/17197148

[React Native - android] crypto 기능 동작 안할 때

갑자기 잘 동작하던 crypto 기능이 동작하지 않는다면, node_moduls 을 지웠다가 설치했다가를 반복했을 경우다. 새로 설치한 node_modules 에 ./node_modules/.bin/rn-nodeify --hack --install 커맨드를 실행하면 해결. 가끔 잊어버리니 기억이 아닌 기록. $ npm i $ npm i react-native-cli -g $ ./node_modules/.bin/rn-nodeify --hack --install * reference : https://github.com/mvayngrib/rn-nodeify#rn-nodeify

[React Native - android] Execution failed for task ':app:mergeDebugNativeLibs'. > A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction > 2 files found with path 'lib/armeabi-v7a/libfbjni.so' from inputs: ...

FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:mergeDebugNativeLibs'. > A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction > 2 files found with path 'lib/armeabi-v7a/libfbjni.so' from inputs: ... Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 Warning: Mapping new ns http..

[React Native - android] Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'., js engine: v8

ERROR Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'., js engine: v8 ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bund..

[React Native - android] Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. ... react-native-firebase_app

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:compileDebugJavaWithJavac'. > Could not resolve all task depe..

[React Native - android] Maximum call stack size exceeded

react-native 버전을 0.65.1 --> 0.69.7로 변경하면서 기존에 문제 없던 부분에서 아래 에러가 발생함. 테스트 폰의 error 메시지를 보면 @babel/core 부분과 관련해서 발생한 에러임을 확인함. babel/core 관련된 라이브러리를 업데이트하여 해결할 수 있을 것 같았으나, 전혀 상관이 없었다. 최종 해결 방법은 맨 아래 참조 Maximum call stack size exceeded 에러가 발생한 파일에서 원인을 찾았다. 해당 파일의 라이브러리 중 @react-native-community/async-storage 을 사용하고 있었는데 지원이 종료되었고, @react-native-async-storage/async-storage 로 변경되었다. 해당 라이브러리를 설치 후 ..

[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 에서 부분의 내용을 추가할 때 별도로 구성해 주어야 하지만, 하나로 구해주었기 때문에 발생함 # 해결 아래와 같이 하나로 구성된 를 여러 개로 분리하면 정상 동작함 ... ...

728x90
반응형