할 때이 오류가 발생합니다. build for android
무엇을 해야할지 잘 모릅니다. 플랫폼을 제거하고 다시 추가하려고했습니다. 하지만 여전히 같은 오류가 발생합니다. 내 안드로이드 SDK를 제거하고 내 맥에 다시 설치해야합니까?ionic 코드에서 'ionic cordova build android`를 수행하는 동안 오류가 발생했습니다. 3
내 오류 :
✖ Running command - failed!
[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.
[ERROR] An error occurred while running cordova build android (exit code 1):
ANDROID_HOME=/Users/apple/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
FAILURE: Build failed with an exception.
* What went wrong:
Failed to load native library 'libnative-platform.dylib' for Mac OS X x86_64.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: /Applications/Android Studio.app/Contents/gradle/gradle-2.14.1/bin/gradle: Command failed with exit code 1
는이 오류에 대한 해결책은 데브을 @hybrid 도착했을 때 그것은 나와 함께 잘 작동 –
@ 모한 Gopi 내가 시도한 것들 : 1. 나는 새로운 프로젝트를 생성하고 www 폴더를 복사하고 다시 "sudo ionic cordova build android"를했습니다. 이번에는 잘 작동합니다. –
@MohanGopi이 에러가 다시 나타나면 : npm install -g ionic @ latest'을 실행하십시오. $ npm install --save-dev --save-exact @ ionic/cli-plugin-ionic1 @ latest @ ionic/cli-plugin-cordova @ latest' 그리고 나서 "sudo ionic cordova build android'를 작성하십시오. –