Android Studio throws No signature of method error, pointing to build.gradle:app
Try to structure the code like this
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
defaultConfig {
applicationId "com.example.bitfighter"
minSdkVersion 19
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildFeatures {
viewBinding = true
}
The defaultConfig should always only be in the android
clause and not inside the buildFeatures. Other than that, you don't need a buildReleases clause when you already have added a buildFeatures clause.
No signature of method: build_79k99zzpu1czozbhubqf5bc4h.android() is applicable for argument types: (build_79k99zzpu1czozbhubqf5bc4h$_run_closure1)
I solved by writing:
buildFeatures {
dataBinding true
}
instead of:
dataBiding{
enabled = true
}
Related Topics
How to Synchronise Projects to Github with Android Studio
How to Set Up Dagger Dependency Injection from Scratch in Android Project
How to Use Ms Visual Studio for Android Development
Full Screen Background Image in an Activity
How Does the Getview() Method Work When Creating Your Own Custom Adapter
Further Understanding Setretaininstance(True)
Load Dimension Value from Res/Values/Dimension.Xml from Source Code
Fit Image in Imagebutton in Android
Adb - Android - Getting the Name of the Current Activity
Fragment Over Another Fragment Issue
Programmatically Set Left Drawable in a Textview
Android: When Should I Use a Handler() and When Should I Use a Thread
Add Padding on View Programmatically
How to Change Color in Circular Progress Bar
Disabling User Dragging on Bottomsheet
Viewpager in a Nestedscrollview
Cannot Resolve Symbol 'Appcompatactivity'
How to Get the Android Path String to a File on Assets Folder