简体   繁体   English

离子模拟android无法正常工作

[英]ionic emulate android not working

I am trying to create a blank project using ionic framework. 我正在尝试使用离子框架创建一个空白项目。 But I'm getting the following error when I run the ionic emulate android command. 但是当我运行ionic emulate android命令时出现以下错误。

Error executing "adb devices": /bin/sh: 1: adb: not found
Error: /home/username/todo/platforms/android/cordova/run: Command failed with exit code 8
    at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:743:16)
    at Process.ChildProcess._handle.onexit (child_process.js:810:5)

I also have added android sdk path to .bashrc file. 我还向.bashrc文件添加了android sdk路径。

export ANDROID_HOME="$HOME/username/android/eclipse/adt-bundle/sdk/tools"
export ANDROID_PLATFORM_TOOLS="$HOME/username/eclipse/adt-bundle/sdk/platform-tools"
export PATH="$ANDROID_HOME:$ANDROID_PLATFORM_TOOLS:$PATH"

I have also install the eclipse adt bundle for 64 bits. 我还安装了64位的eclipse adt捆绑包。 any kind of help would be appreciated. 任何帮助将不胜感激。

Error executing "adb devices": /bin/sh: 1: adb: not found 执行“ adb设备”时出错:/ bin / sh:1:adb:找不到

Do you have adb in your path? 您的路径中是否有adb? If not, put it. 如果没有,请放。 It comes with android sdk 它带有android SDK

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM