sdk - Ionic not building android due to android-24 target -
i doing following ionic command:
ionic build android
i receiving error message:
hint: open sdk manager running: /usr/local/cellar/android-sdk/24.3.4/bin/android require: 1. "sdk platform" android-24 2. "android sdk platform-tools (latest) 3. "android sdk build-tools" (latest)]
so opened sdk manager , see following info:
i have removed, added, installed, trying build, etc. have had 0 luck. have tried of these changes files. still nothing.
i have tried adding android_home path .bash_profile. not have configured. didn't work earlier.
instruction 1:
after adding android_home
, make sure below:
restart system or run source ~/.bash_profile
remove android platform project ionic cordova platform rm android or ionic platform rm android
add android platform ionic cordova platform add android
then ionic cordova run android or ionic run android
instruction 2:
to set android_home
, java_home
, follow below steps:
- run command open ~/.bash_profile
paste below in file opens on text editor
export android_home=/usr/local/cellar/android-sdk/24.4.1_1 export path=${path}:$android_home/tools:$android_home/platform-tools
save - "command s" or "ctrl s"
- then follow "instruction 1:" above
note: make sure have 24.4.1_1 sdk
hope helps.
Comments
Post a Comment