Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

185
Views
how to setup environmental variable for android in mac

My .bash_profile looks like this

export PATH=$PATH:/Users/subbarao/Library/Android/sdk/platform-tools/
export ANDROID_HOME=/Users/subbarao/Library/Android/sdk/
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$ANDROID_HOME/tools:$PATH
even $(user/libexec/path_helper -s)

When I give ionic platform add android I am getting like this img

When I give ionic run android I am running into this error

Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK. Looked here: /Users/subbarao/Library/Android/sdk/tools/templates/gradle/wrapper

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Update SDK and gradle version and then try following commands in the terminal

export ANDROID_HOME=/Applications/ADT/sdk 

PATH environment variable

export PATH=$PATH:$ANDROID_HOME/bin
over 4 years ago · Santiago Trujillo Report

0

You have cordova-android v 6.1.2. There was an issue with cordova-android. Check this answer.

Try

ionic platform add android@6.2.1

Or

ionic platform add android@latest

Update:

if you are using ionic cli v3, the command is

ionic cordova platform add android@latest
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!