Skip to content
Advertisement

Cordova can’t find $ANDROID_HOME

I found a lot of solutions but they didn’t help me.

I defined variables in /home/username/.zshrc

JavaScript

And variables were defined because:

JavaScript

Also command below works fine:

JavaScript

I try to build a project

JavaScript

Advertisement

Answer

In tried many files with env variable for my linux

In manjaro linux it needs to write env variables only in file:

/etc/environment

JavaScript

So cordova works well in this case

Change USER_NAME to your linux user name

Also should refresh paths ($ source ./environment) or restart system

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement