离子找不到机器人

时间:2016-11-13 03:31:32

标签: android ionic-framework

我曾尝试使用离子实验室。我尝试使用实验室构建一个简单的空白应用程序,但是当我去构建我的Android应用程序时,它说我需要安装android sdk。我已经有了android sdk和平台工具。我甚至加入了我的道路,以防你想知道。通过查看"离子android构建错误 - 未能找到android_home"。(当我检查我的环境路径时)我试图研究我的问题后,我慷慨地派人去寻求帮助。我拍了两张屏幕截图(来自离子实验室控制台的环境和错误)。 errorenvironment

2 个答案:

答案 0 :(得分:0)

请你在终端做以下事情。它可能对你有帮助。

Step:--1
export ANDROID_HOME=~/android-sdk-macosx
PATH=$PATH:$ANDROID_HOME/tools
PATH=$PATH:$ANDROID_HOME/platform-tools  

Step:--2
Update SDK and go to directiory and set your SDK path properly.

答案 1 :(得分:0)

For windows:--
set ANDROID_HOME=C:\<installation location>\android-sdk-windows
set PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools
The Android SDK download does not include specific Android platforms.   To run the code in this guide, you need to download and install the latest SDK platform. You do this by using the Android SDK and AVD Manager that you installed in the previous section.

Open the Android SDK Manager window:

android
Note: If this command does not open the Android SDK Manager, then your   path is not configured correctly.
Select the Tools checkbox.
Select the checkbox for the latest Android SDK.
From the Extras folder, select the checkbox for the Android Support Library.
Click the Install packages... button to complete the download and installation.

Note: You may want to install all the available updates, but be aware it will take longer, as each API level is a large download.