To enable viewBinding I add this to gradle:
viewBinding
{
enabled = true
}
Is there a way to have viewBinding enabled by default whenever I create a new project?
I'm pretty sure there is no way to enable it by default as there is no setting or plugin available for this, but I could be wrong.
As it is for data binding as it is also for view binding. it happen in the grade by enabling it to true. Voilà!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.