카테고리 없음

[에러해결] info running jetifier to migrate libraries to androidx. you can disable it using --no-jetifier flag

딸기케잌🍓 2022. 2. 3. 17:00

 

 

해결방법1)

remove node_modules 삭제 후

npm install or yarn
npm install --save-dev jetifier 
npx jetify  
npx react-native run-android

위 방법의 경우

디펜던시 파일들을 업데이트 하거ㅏㄴ node_modules을  설치시 

npx jetify

를 실행해야 한다.

 

*참고

npx jetify를 할 때 아래와 같은 permission에러가 나서

 

 

VS Code를 관리자 권한으로 실행해서 하니 에러는 나지 않았다.

 

 

해결방법2)

react-native run-android --no-jetifier

 

Jetifier is deprecated. Future versions of react-native CLI may not run it by default. Jetifier found 874 file(s) to forward-jetify. Using 4 workers...

 

npx jetify실행시 위와 같이 deprecated되었다고 나오므로

해결방법2로 해결함