Error in build Ionic framework

Asked

Viewed 80 times

5

Gentlemen, I have migrated to linux and I have a question/problem.

I already have the android sdk installed with their respective dependencies installed, I run the android command and open me the sdk manager normally, I put the environment variables in the file .zshrc (same as . bash_profile):

export ANDROID_HOME=/opt/android-sdk/
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

And even so, when I run Ionic build android, I get the message that is in the photo. I’m forgetting something?

inserir a descrição da imagem aqui

2 answers

0

Were the settings of the environment variables made in your user’s profile and not in the root profile? If yes you should use the command: ionic build android with your user and not as root!

0

As Thyago said, if you set the Android environment variable on your user, you don’t need to use the sudo.

Remembering that for you to generate android apk the process should be done in the following order.

-Install the android studio

-Set the environment variable android, the ANDROID_HOME

-Go to your project directory and enter the command ionic platform add android

-Insert the command Ionic build android

Browser other questions tagged

You are not signed in. Login or sign up in order to post.