지난 금요일 거래처에게 앱 테스트를 요청하기위해 release 하고 난 다음 월요일 출근해서 작업을 할려고 하니 아래와 같은 에러가 발생했다. C:\App\Test>npx react-native run-android -- --reset-cache error Android project not found. Are you sure this is a React Native project? If your Android files are located in a non-standard location (e.g. not inside 'android' folder), consider setting `project.android.sourceDir` option to point to a new location. Run C..
react-native 최초 설치 후 안드로이드 스튜디오로 실행할 경우 위와 같은 오류 발생할때 1. [패키지명]/android/app/src/main/assets 폴더가 있는지 확인하고 없으면 생성 2. [패키지명]/android 폴더에서 ./gradlew clean 실행 3. [패키지명] 폴더에서 아래 명령어 실행 react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res 4. react-native run-android
React Native 프로젝트 생성 준비 1. 리액트 네이티브 CLI 명령어 사용하여 프로젝트 생성 react-native init Test 2. 타입스크립트, Styled Components, babel-plugin-root-import 를 개발의 편의를 위해 설치 cd Test npm install --save styled-components npm install --save-dev typescript @types/react @types/react-native @types/styled-components babel-plugin-root-import 3. 타입스크립트 설정을 위해 tsconfig.json 생성 { "compilerOptions": { "allowJs": true, "allowSynth..
> Task :app:stripDebugDebugSymbols UP-TO-DATE Compatible side by side NDK version was not found. > Task :app:installDebug FAILED 안드로이드 스튜디오 환경설정에서 NDK 설치
1. Chocolatey 패키지 관리 프로그램 설치 초코렛티(Chocolatey)는 윈도우즈 패키지 매니저로 Package를 설치 및 관리해주는 툴입니다. Mac에는 홈브루(Homebrew), Ubuntu에는 apt-get, CentOS에는 yum 패키지 매니저가 있습니다. 파워셀 또는 Cmd 는 관리자 권한으로 실행 (파워셀보다는 명령프로프트(cmd)로 설치하는 것이 편하실겁니다. 그 이유는 아래에...) https://chocolatey.org/install Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::..