728x90

핸드폰 개발자 모드로 설정!

usb 컴퓨터와 핸드폰 기기 연결 (c타입-c타입도 됨)

usb 테더링으로 설정

 

만약 다음과 같은 에러시 

 

Task :app:installDebug FAILED
error Failed to install the app. Make sure you have the Android development environment set up:

 

 

cd android

./gradlew clean

 

그리고!!!

 

깔려있는 앱삭제!

 

후 실행 

yarn android

 

 

 

https://velog.io/@rjc1704/React-Native-%EC%97%90%EB%9F%AC-%EB%8C%80%EC%9D%91

 

React Native 에러 로그 (Deprecated Gradle features)

npx react-native run-android 명령어로 앱 실행 시도 할 때 위와 같은 에러가 뜬다면, 아래 2가지 작업만 해주면 된다. 디렉터리 위치를 android 디렉터리 안으로 이동하여 ./gradlew clean 실행 에뮬레이터 또

velog.io

 

728x90
728x90

Exiting: Review successful transactions manually by checking the transaction hashes above on Etherscan.

Error:  *** Deployment Failed ***
"Migrations" -- Returned error: ENOENT: no such file or directory

 

아까는 배포가 되었다가 안됐던 이유가

가나슈 네트워크 연결한 7545에서 테스트넷(Ropsten테스트 네트워크로 하면된다길래..) 해보겠다고 다른거로 바꿔놔서 그랬다.

network7545내가 만든네트워크임

 

배포명령어가 좀 다르긴한대 비슷비슷하네 명령어 정리 해보자

truffle migrate --network development

아까는 명령어 문제인가 싶어서 위에 껄로 하긴 했는데 이건상관없는 거였음( truffle migrate 평소대로 이거해도같음)

 

 

명령어

//truffle프로젝트 초기화
truffle init

//각 네트워크에 배포된 컨트랙트의 주소표시
truffle networks

//컨트랙트 배포
truffle deploy

//개발모드로 접속(ganache-cli실행)
truffle develop

//모든 명령목록, 특정명령에 대한 정보를 표시
truffle help

배포

 truffle migrate

재배포시 

 truffle migrate --reset

 

 

(truffle deploy is an alias for truffle migrate. They both do the same thing.

별칭같은 거래 둘이 같대.)

728x90

+ Recent posts