Erro ao compilar app ionic android A problem occurred configuring project ‘:CordovaLib’

Erro ao compilar aplicativo ionic android com a seguinte mensagem: “A problem occurred configuring project ‘:CordovaLib’.

java.lang.NullPointerException (no error message) " 

Já reinstalei novamente a plataforma android e cordova, erro continua.

FAILURE: Build failed with an exception.

What went wrong: A problem occurred configuring project ':CordovaLib'.      java.lang.NullPointerException (no error message)  Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.  Get more help at https://help.gradle.org 

BUILD FAILED in 8m 6s /home/mnmk/AESC/platforms/android/gradlew: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception.

What went wrong: A problem occurred configuring project ':CordovaLib'.      java.lang.NullPointerException (no error message)  Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.  Get more help at https://help.gradle.org 

BUILD FAILED in 8m 6s [ERROR] An error occurred while running subprocess cordova.

cordova build android exited with exit code 1.  Re-running this command with the --verbose flag may provide more  information. 

espero conseguir compilar e testar o aplicativo em um dispositivo fisico.