0

I am trying so hard to run cordova... But i got the same exact error such as : " Error: Could not find an installed version of Gradle either in Android Studio, or on your system to install the gradle wrapper. Please include gradle in your path, or install Android Studio "

Or my Path on the baschr is correct. I update Android Studio SDK with the right path on it.

But i still get this error.

I'vre read a lot of comments about it and try almost everything such as copy/paste tools android sdk (downloaded on the android site ) into my path folder with no success at all.

What shall i do ?

Thank you !

which_part
  • 792
  • 3
  • 11
  • 26
Karro
  • 111
  • 1
  • 9

2 Answers2

1

Problem solved.

In fact, i just installed manually the gradle with this command :

sudo apt-get install gradle

And it seems to work !

Karro
  • 111
  • 1
  • 9
0

Gradle files are present in Android SDK. Your Android SDK is missing (atleast the path could not be found). Do install Android SDK and place the path in PATH in System Environment Variables.

Reference here - Android Builds Now Using Gradle By Default.

If you have Android SDK installed already, Check How To Read and Set Environmental Variables on a Linux for more details.

Check this Configuring Gradle documentation.

If you dont have Android SDK, then refering to this answer,

  • Visit the Downloads Page of Android and SDK Tools

  • Download Android command line tools given at the bottom of the page. You need not install Android Studio.

  • Then set environment variables accordingly.

  • Then In project folder:

     $cordova platforms remove android
     $cordova platforms add android
    
Glorfindel
  • 21,988
  • 13
  • 81
  • 109
pro_cheats
  • 1,534
  • 1
  • 15
  • 25
  • Great ! Thank you for your answer. I already installed SDK so i will follow the second link. I'm going to tell as soon as possible if it finally works ! – Karro Jun 15 '17 at 11:28