Hello Guys, How are you all? Hope You all Are Fine. I just updated my android studio and Now I am facing the following Warning Access to ‘viewBinding’ exceeds its access rights in Android Studio. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
How Access to ‘viewBinding’ exceeds its access rights Error Occurs ?
I just updated my android studio and Now I am facing the following Warning
Access to 'viewBinding' exceeds its access rights
How To Solve Access to ‘viewBinding’ exceeds its access rights Error ?
- How To Solve Access to ‘viewBinding’ exceeds its access rights Error?
To Solve Access to ‘viewBinding’ exceeds its access rights Error Here are Some issues with Groovy If You are Using Groovy Then Your build.gradle file, as shown in the following example. If You are using Groovy then just remove the equal sign as given below example.
- Access to ‘viewBinding’ exceeds its access rights
To Solve Access to ‘viewBinding’ exceeds its access rights Error Here are Some issues with Groovy If You are Using Groovy Then Your build.gradle file, as shown in the following example. If You are using Groovy then just remove the equal sign as given below example.
Solution 1 : set viewBinding
Here are Some issues with Groovy If You are Using Groovy Then Your build.gradle
file, as shown in the following example. If You are using Groovy then just remove the equal sign as given below example.
For Groovy
android {
...
buildFeatures {
viewBinding true
}
}
For Kotlin
android {
...
buildFeatures {
viewBinding = true
}
}
Summery
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read