Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

android_home path

$
0
0

@griffin wrote:

Hi all,

I know this topic shows up here a lot. I've been reading this forum as well as stackoverflow and have followed the directions closely but can't seem to configure my path correctly. OSX

When I input: ionic build android I get the following error.

[Error: Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable.]
ERROR building one of the platforms: Error: /Users/work/dukana-repo/platforms/android/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project

in: nano ~/.bash_profile

I added:
export ANDROID_HOME=/Applications/android/sdk
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home
export ANDROID_HOME=~/.android
export PATH=$ANDROID_HOME/tools:$PATH

according to android studio the sdk location is: /Applications/android/sdk

I read online to add the SDK version in the path but this caused a great deal of problems.

I read somewhere to use brew to add gradle. I then read the GRADLE_HOME should be /usr/local/Cellar/gradle/2.7/libexec but adding this to the bash profile didn't seem to work.

I think I've over read on the topic and as you all may be able to tell I haven't worked with android before. If some angel could help me sort everything out I'd be eternally grateful. I have been mostly following directions from: https://cordova.apache.org/docs/en/5.4.0/guide/platforms/android/

Thank you,

Griffin

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>