[RN] ์๋ง์ ์ค๋ฅ(์๋ฌ) ํด๊ฒฐ..
์ง์ง ๊ณต์ ๋ฌธ์๋ง ์ฃผ์๊น๊ฒ ์ฝ์ด๋ ๋์ง ์์ ์๋ฌ๋ค์ด ๋ง์ ๊ฒ ๊ฐ๋ค..ใ
1. Could not find proper version of cocoapods (1.11.3) in any of the sources Run `bundle install` to install missing gems.
์ ๊ทธ๋ฐ์ง ๋ชจ๋ฅด๊ฒ ๋ค๋ง.. pod install ์ ํ๋ฉด ์๊พธ๋ง ์ ์๋ฌ๊ฐ ๋๋ค. ๊ทธ๋ด ๊ฒฝ์ฐ ํ๋ผ๋ ๋๋ก ํ๋ฉด๋๋ค.
$ bundle install ์ ์คํํ pod install ์ ํ๋ฉด ์๋๋ค.
2. Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
์ด๊ฑด ์ด์ด์๋ ์ค๋ฅ ใ
์ด๋ฏธ ์คํ ์ค์ธ ํฌํธ๊ฐ ์๋ ๊ฑฐ๋ค. ํฐ๋ฏธ๋์์ ๋ญ๊ฐ ๋์๊ฐ๊ณ ์๋์ง ์ฃผ์ ๊น๊ฒ ๋ณด์.. ์ข ๋ฃํ๊ณ ์คํํ๋ฉด ์ ๋ ๊ฑฐ๋ค
3. mac jdk Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
1. Android - Preferences์ ๋ค์ด๊ฐ๋ค. (mac๊ธฐ์ค) - ์๋์ฐ๋ File - setting์ผ๊ฑฐ๋ค.
2. Build, Execution, Deployment - Build tools - Gradle ์ ๋ค์ด๊ฐ๋ฉด ์๋์ ๊ฐ์ ํ๋ฉด์ด ๋ณด์ธ๋ค.
- ๋จ, ๋ด๊ฐ ์์
ํ๊ณ ์๋ ํด๋์ android ํด๋๋ก ํ๋ก์ ํธ๋ฅผ ์ด์ด ์ค ๋ค ๋ค์ด๊ฐ์ผ ํ๋ค.
๋ ๊ทธ๊ฒ๋ ๋ชจ๋ฅด๊ณ ์์ํ๋ฉด์์ Gradle projects๊ฐ ์๋ณด์ฌ์ ํค๋งธ๋ค

์ฌ๊ธฐ์ Gradle JDK๋ฅผ 11๋ฒ์ ์ผ๋ก ๋ง์ถฐ์ฃผ์.
์๋๋ก์ด๋๋ฅผ ์ฒ์ ๊น ๊ฒฝ์ฐ JDK๊ฐ ์๋ ๊ฒ ๊ฐ๋ค. ๊ทธ๋์ ๋๋ ์๋ ๋งํฌ์์ ๋ค์ด๋ก๋ ๋ฐ์๋ค.
https://www.oracle.com/kr/java/technologies/javase/jdk11-archive-downloads.html
๋ค์ด๋ก๋ ๋ฐ๊ณ Add JDK๋ก ๋ค์ด๋ฐ์ ํ์ผ์ ๋ฃ์ด์ฃผ๋ฉด ๋๋ค~!

4. Requiring unknown module 'undefined' ~
1. node_module ํด๋ ๋ฐ yarn.lock ํ์ผ ์ญ์
2. $ yarn
3. $ yarn cache clean
5. adb reverse ENOENT
ํ๊ฒฝ๋ณ์๊ฐ ์๋ชป ์ค์ ๋์ด์ ๋๋ ์ค๋ฅ๋ค.
ํด๊ฒฐ๋ฒ(macOS ๊ธฐ์ค)
1. bash_profile์ ์ด์ด์ค๋ค.
$ open ~/.bash_profile
2. ๋ค์ ํ๊ฒฝ๋ณ์๋ฅผ ๋งจ ์๋์ ๋ฃ์ด์ฃผ์. ์ฐธ๊ณ ๋ก open๋ช ๋ น์ด๋ ๋ฉ๋ชจ์ฅ์ฒ๋ผ ๋ง์ฐ์ค๋ก ์กฐ์์ด ๊ฐ๋ฅํ๋ค.
export ANDROID_SDK=/Users/<your_computer_name>/Library/Android/sdk
export PATH=/Users/<your_computer_name>/Library/Android/sdk/platform-tools:$PATH
3. ์ ์ฅ ํ ๋ซ๊ธฐ
4. ๋ณ๊ฒฝ์ฌํญ ์ปดํ์ผํ๊ธฐ
source ~/.bash_profile
6. Error while waiting for device: AVD Pixel_2_API_28_2 is already running. If that is not the case, delete the files at C:\Users\UserName\.android\avd/Pixel_2_API_28_2.avd/*.lock and try again.
์๋ฎฌ๋ ์ดํฐ๋ฅผ ๋น์ ์์ ์ผ๋ก ์ข
๋ฃํ์ ๋ ๋จ๋ ์ค๋ฅ๋ค. ์ด์ํ๊ฒ ์ข
๋ฃ ๋ฒํผ์ ๋๋ ๋๋ฐ ์ข
๋ฃ๊ฐ ๋์ง ์์๋ค. ๊ทธ๋์ ๊ฐ์ ์ข
๋ฃ๋ฅผ ํ๋ ค๊ณ ํ์์ผ๋ ๊ทธ๊ฒ์กฐ์ฐจ ๋จน์ง ์์๋ค..
1. ํด๋น Virtual Device๋ฅผ ์ญ์ ํ๋ค. ๋๋ฐ์ด์ค์ ์ค๋ฅธ์ชฝ์ ์ 3๊ฐ ๋ฒํผ์ ๋๋ฅด๋ฉด Delete ํ ์ ์๋ค.
2. ์ข
๋ฃํ ๋๋ ์๋ฎฌ๋ ์ดํฐ์์ ํญ์ x๋ฒํผ์ ๋๋ฌ ์ง์์ฃผ๋ฉด ๋๋ค.
7. The following build commands failed: CompileC /Users/ โขโขโข main.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
์ด๋ด ๊ฒฝ์ฐ pod๋ฅผ ์ฌ์ค์น ํด์ฃผ๋ฉด ๋๋ค. ์๋ง ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ install ํ๋ค๊ฐ ์ญ์ ํ ๊ฒฝ์ฐ ios์ android์ ๋ฐ์๋๋ ๋ฌธ์ ๋๋ฌธ์ ๋ฐ์ํ ๊ฒ๊ฐ๋ค.
$ cd ios -> ios ํด๋๋ก ์ด๋
$ pod deintegrate -> pod ์ญ์
$ pod update -> ์ต์ ๋ฒ์ ์ผ๋ก ์ ๋ฐ์ดํธ
$ pod install -> Podfile์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ฌ์ค์น
Podfile์ ์ฌ๋ฌ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๊ฐ ๋ค์ด์๋ ์ํ์์ install & updateํ๋ฉด ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค์ด ์ค์น๋๋ค.
์ถ๊ฐ๋ก ์๋ ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํ๋ฉด ๋ฌธ์ ๊ฐ ์๋ ๋ถ๋ถ์ ์ง๋จํด์ค๋ค.
$ npx @react-native-community/cli doctor
์ฐธ๊ณ
react-native android ์ธํ
https://reactnative.dev/docs/environment-setup#installing-dependencies
Setting up the development environment ยท React Native
This page will help you install and build your first React Native app.
reactnative.dev
https://www.npmjs.com/package/react-native-image-crop-picker?activeTab=versions
react-native-image-crop-picker
Select single or multiple images, with cropping option. Latest version: 0.37.3, last published: 2 months ago. Start using react-native-image-crop-picker in your project by running `npm i react-native-image-crop-picker`. There are 57 other projects in the n
www.npmjs.com
https://github.com/ivpusic/react-native-image-crop-picker
GitHub - ivpusic/react-native-image-crop-picker: iOS/Android image picker with support for camera, video, configurable compressi
iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping - GitHub - ivpusic/react-native-image-crop-picker: iOS/Android image picker with supp...
github.com