반응형

starter template에 포함된 앱을 android emulator로 배포해보려고 아래와 같은 키워드를 입력해보았다.

$ ionic cordova run android --prod


빌드는 성공했다고 나오지만 아래와 같은 에러메시지가 발생하며, emulator에 앱이 올라오지 않았다.

No target specified and no devices found, deploying to emulator

Error: Cannot read property 'replace' of undefined

[ERROR] An error occurred while running cordova run android --release (exit code 1).


맨 윗줄은 target device를 찾을 수 없다는 에러이고, 밑에 두줄은 device가 없어서 부가적으로 발생하는 에러이다.


emulator를 띄우면 해결이 되지만, emulator을 띄워도 해결이 되지 않는 경우는 개발자 옵션에서 usb 디버깅 옵션을 켜주어야 한다.

반응형
,