When I try to build my project with gradle wrapper I get this error:
./gradlew FAILURE: Build failed with an exception. * What went wrong: A problem occurred c
Here was how I resolved the issue. Change the root build.gradle file:
dependencies { classpath 'com.android.tools.build:gradle:3.1.3' ..... //other codes here }