This worded for me:
Go to the site https://gradle.org/releases, download the lastest version in some folder.
Unpack the zipfolder and create a symbolic link: sudo ln -sf /PATH-TO-BIN-FOLDER/gradle /usr/bin/gradle
This worded for me:
Go to the site https://gradle.org/releases, download the lastest version in some folder.
Unpack the zipfolder and create a symbolic link: sudo ln -sf /PATH-TO-BIN-FOLDER/gradle /usr/bin/gradle
I couldn’t resolve it by creating a symlink. Instead, i’ve copied gradle directory to /usr/share and then i’ve added /usr/share/gradle/bin to my system PATH. Gradle binary seems not to resolve its dependecies if it isn’t run from gradle/bin directory
i have tried all of your suggestions and even upgraded gradle to 4.xx and still the same issue , i even tried
ionic cordova platforms remove android
ionic cordova platform add android@6.3.0
only to get different errors
here is part of the error
FileUtils filePlugin = (FileUtils) pm.getPlugin("File");
^
symbol: class FileUtils
Note: /home/bobnino/test3/platforms/android/src/org/apache/cordova/splashscreen/SplashScreen.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/bobnino/test3/platforms/android/src/org/apache/cordova/filetransfer/FileTransfer.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
FAILURE: Build failed with an exception.
Compilation failed; see the compiler error output for details.
[ERROR] An error occurred while running cordova build android (exit code 1).
HELP!!!
This worked for me. Thanks a ton.
Hi Sujan, I am getting same error please check the following version
ionic --version
3.19.1
cordova --version
7.0.1
Installed platforms:
android 6.2.3
ios 4.5.4
Available platforms:
blackberry10 ~3.8.0 (deprecated)
browser ~4.1.0
ubuntu ~4.3.4 (deprecated)
webos ~3.7.0
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-27,android-26,android-25,android-24,android-23,android-22,android-21,android-20,android-19,android-18
Gradle: installed /usr/share/gradle/bin/gradle
Worked for me thank you so much.
hi, im getting Task ‘cdvBuildDebug’ not found in root project ‘android’.
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-28,android-27,android-26,android-25,android-24,android-23,android-22,android-21,android-20,android-19,android-18,android-17,android-16
Gradle: installed /usr/local/Cellar/gradle/5.1.1/bin/gradle
Ive already tried removing and readding platform