아래 링크의 react reference를 참고하여 순서대로 설치하면 됨.
- react reference : https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment
- 참고하면 좋은 동영상 : https://www.youtube.com/watch?v=RBZL6PO2ytc
- Android : (19.12.10 기준) JDK 13은 빌드가 아예안됨..ㅠㅠ 혹시 jdk 버전이 13이면 11로 버전을 바꿔야함.
- change JDK version 13 to 11 (참고 : https://www.charlezz.com/?p=128)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// 1. terminal 실행 후 아래 명령어 입력하여 설치된 모든 JDK를 확인함.
$/usr/libexec/java_home -V
// 2. 홈으로 이동.
$cd
// 3. bash_profile 에 환경 변수 추가. 'ctrl+x'-'y'-'enter' 버튼을 누르면 저장됨.
// (방법 1)
$sudo nano ~/.bash_profile
// (방법 2)
$nano .bash_profile
// 3-1. 환경변수 추가
export JAVA_HOME=/Library/Java/JavaVirtualMachines/버전이름/Contents/Home
예 ) export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.5.jdk/Contents/Home
// 4. bash_profile 다시 로드.
$source ~/.bash_profile
// 5. 자바 버전 확인
$java -version
|
cs |
- 프로젝트 생성
'개발 > React native' 카테고리의 다른 글
[React Native] ios virtual machine 기종 변경 (0) | 2019.12.10 |
---|