Task 'wrapper' not found in root project 'android'


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.

  • What went wrong:
    Execution failed for task ‘:compileDebugJavaWithJavac’.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

[ERROR] An error occurred while running cordova build android (exit code 1).



This worked for me. Thanks a ton. :+1: