I have an Android project that is now failing to build:
FAILURE: Build failed with an exception. * Where: Build file 'build.gradle' line: 28 * What went wrong: A problem occurred evaluating root project 'X'. > java.lang.NoClassDefFoundError: com/android/build/gradle/internal/ToolingRegistryProvider * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED
The project was building fine with the following dependencies:
'com.android.tools.build:gradle:2.1.3'
'com.android.tools.build:gradle-experimental:0.7.3'
A coworker applied the updates offered by AndroidStudio. That changed the plugin versions to:
'com.android.tools.build:gradle:2.2.0'
'com.android.tools.build:gradle-experimental:0.8.0'
After this update, the project builds successfully on his development machine (Windows 7) and on mine (Ubuntu 16.04). The error occurs on the Jenkins build server (Ubuntu 16.04). I installed the available updates to the Android SDK components on the build server but the error persists.
A google search for "ToolingRegistryProvider"
returns "Your search matches no documents".