SDK problems in Fedora Workstation 24

Asked

Viewed 37 times

0

A few days ago I installed Fededora 24, with all completed I installed Ionic and Cordova, and soon after JDK. Ao gives the following command ionic build android I checked that SDK was missing, installed normally, but when executing the command again I got the following error:

You have been opted out of telemetry. To change this, run: cordova telemetry on.

Running command: /home/omestre/IonicProjects/ionicTask/hooks/after_prepare/010_add_platform_class.js /home/omestre/IonicProjects/ionicTask


add to body class: platform-android

Error: Failed to find 'ANDROID_HOME' environment variable. Try setting setting it manually.
Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.

I tried to change my file bashrc and nothing solves, follows as the file:

# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

export NVM_DIR="/root/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm

export PATH=$PATH:/Android/Sdk/tools:/opt/Android/Sdk/platform-tools:/Android/Sdk/tools/bin
export PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/omestre/.local/bin:/home/omestre/bin:/Android/Sdk/tools:/An$
export PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/omestre/.local/bin:/home/omestre/bin:/Android/Sdk/tools:/An$
export PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/omestre/.local/bin:/home/omestre/bin:/opt/Android/Sdk/tools$
export PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/omestre/.local/bin:/home/omestre/bin:/Android/Sdk/tools:/op$
export PATH=$PATH:/opt/Android/Sdk/tools:/opt/Android/Sdk/platform-tools:/opt/Android/Sdk/tools/bin

1 answer

0


The solution was, in the terminal of the following command: nano ~/.bashrc

Replace the last four lines by:

export ANDROID_HOME=/<installation location>/android-sdk-linux export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

Ctrl+x to save and restart the session for the new settings to be recognized

Browser other questions tagged

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