Run electrode-native getting following error : using command **sudo ern run-android** on ubuntu 14.04

139 Views Asked by At

Getting these error when execute the command: ern run-android

$ sudo ern run-android

enter image description here

I am using installation step from this link click here . Please help to run application.

1

There are 1 best solutions below

0
On

Above raised issue has been resolved and following step need to follow:

open the terminal and type sudo su to become the root user

Install the gradle

Add SDk path on the ~/.bashrc and add the followings

export ANDROID_SDK_ROOT=/home/pchauhan/Android/Sdk 

also if in case still getting error add following line added as well

GRADLE_HOME=/opt/gradle 
export PATH=$PATH:$GRADLE_HOME/gradle5.5

//comment enter the respective path as you have installed

Save the file Reboot the system if not not source .baserc // means not set path again login with root user into the terminal and execute following command once after connecting the mobile device

$ adb devices

now run the command

ern run-android