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:

  1. restart system or run source ~/.bash_profile

  2. remove android platform project ionic cordova platform rm android or ionic platform rm android

  3. add android platform ionic cordova platform add android

  4. then ionic cordova run android or ionic run android

instruction 2:

to set android_home , java_home, follow below steps:

  1. run command open ~/.bash_profile
  2. 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 
  3. save - "command s" or "ctrl s"

  4. then follow "instruction 1:" above

note: make sure have 24.4.1_1 sdk

hope helps.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -