ubuntu: can't run ionic app on emulator becaus

2019-02-21 03:05发布

问题:

I'm using ionic2 and when I run app as ionic cordova run android. I got this

error: ERROR running one or more of the platforms: Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable. You may not have the required environment or OS to run this project

although I have android studio and SDK installed and set it in bashrc file as:

export ANDROID_HOME="/home/shimaa/Android/Sdk"
export PATH=${PATH}:/home/shimaa/Android/Sdk/platform-tools:/Development/android-sdk/tools
export PATH=${PATH}:/home/shimaa/android-studio/gradle/gradle-3.2/bin

but when I write android or sdkmanager in terminal I got this error:

No command 'android' found and sdkmanager: command not found

which means that android is not installed although it is installed and I run it. anyone can tell me the solution ?