ionic cordova从ionic 3构建android时出错
当我为android构建ionic cordova从ionic 3构建android时出错,cordova,ionic-framework,android-sdk-2.3,Cordova,Ionic Framework,Android Sdk 2.3,当我为android构建时,我会遇到这个错误,我不知道该怎么做。我尝试删除平台并再次添加它。但仍然得到同样的错误。我是否需要删除android sdk并在mac中重新安装 我的错误: ✖ Running command - failed! [ERROR] Cordova encountered an error. You may get more insight by running the Cordova command above directly. [ERROR] An
时,我会遇到这个错误,我不知道该怎么做。我尝试删除平台并再次添加它。但仍然得到同样的错误。我是否需要删除android sdk并在mac中重新安装
我的错误:
✖ 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
我也面临同样的问题。。但当我发出命令时,它对我来说很好
$ ionic cordova build android --stacktrace
这段代码的意思是什么:爱奥尼亚·科尔多瓦构建安卓系统--stacktrace
`stacktrace`是我们构建时的意思,您有没有解决这个错误的方法@hybridDev@Mohan我尝试过的事情:1。我创建了一个新项目,并复制了www文件夹,我又做了一次“sudo ionic cordova构建android”。这一次起作用了fine@MohanGopi如果您再次遇到此错误:donpm安装-gionic@latest
$npm安装--保存开发--保存exact@ionic/cli插件-ionic1@latest@IONAL/cli插件-cordova@latest
然后执行“suod ionic cordova构建android”`