[SOLVED] ANDROID_HOME doesn't work anymore (?)

FIXED! HERE THE SOLUTION! (just if you have all working well, so it worked at least one!)

Problem:
You’re working well with your Ionic app when a sad day the ANDROID_HOME error is shown.
What should be the problem? Maybe you’ve worked with some other framework like crashlytics to manage beta and crashes.

Solution:
The permissions are changed (probably) so make the following:

  1. Restore the right folder permission to all the folder/subfolder of the platforms folder
  2. Delete the android platform with “sudo ionic platform remove android”
  3. Add the android platform with “ionic platform add android” DON’T USE THE SUDO! If there are errors without the sudo SO that’s the problem! NEVER use the sudo thing or the project will have issue like this!

I’ve think the same thing @gmarziou when I sent the post. I’ve found the fix because the new project didn’t ask for admin password but the old one does.
We get it at the same time :smile: Thanks for the support!

FINALLY I can go on! I hope this can help you, dude that is reading this :wink:

3 Likes