My project is not building after changing the gradle link in gradle.project If the value is -
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.google.gms:google-services:3.1.0'
}
}
then it works but if I change classpath 'com.android.tools.build:gradle:3.0.1'
to classpath 'com.android.tools.build:gradle:3.1.0'
then I get an error.
Error:
Caused by: java.lang.IllegalArgumentException: couldn't make a guess for com.example.example.databinding.ContentClassApplicationMyClass1Binding
and error in xml at
android:layout_height="?attr/actionBarSize"
and
style="?borderlessButtonStyle"
How can I update the gradle and fix the issues?
Please refer to this link for more code: