在做ionic cordova来构建android fro ionic 3时出错 [英] Error while do ` ionic cordova build android` fro ionic 3

查看:99
本文介绍了在做ionic cordova来构建android fro ionic 3时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我为Android构建$code>不知道该怎么做时,出现此错误。我尝试删除平台并再次添加。但是仍然出现相同的错误。我是否需要删除我的android sdk并将其重新安装到我的mac中?

I am getting this error when i do build for android dont know what to do. I tried remove platform and add it again. But still getting same error. Should i need to remove my android sdk and install it again in my 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


推荐答案

我也面临着同样的问题..但在make命令时它对我来说很好

I am also facing same issue .. but it work fine with me when make command

$ ionic cordova build android  --stacktrace

这篇关于在做ionic cordova来构建android fro ionic 3时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆