gradle - Android DataBinding build error -
i have problem data binding library android. have freshly installed android studio v2.0 , newly created project. problem when try add
databinding { enabled = true }
to build.gradle, error while trying build project: :app:databindingprocesslayoutsdebug failed error:execution failed task ':app:databindingprocesslayoutsdebug'.
could not initialize class android.databinding.parser.xmllexer
the build.gradle files this:
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.0.0' // note: not place application dependencies here; belong // in individual module build.gradle files } } allprojects { repositories { jcenter() } } task clean(type: delete) { delete rootproject.builddir }
and
apply plugin: 'com.android.application' android { compilesdkversion 23 buildtoolsversion '23.0.3' defaultconfig { applicationid "com.silgrid.test" minsdkversion 14 targetsdkversion 23 versioncode 1 versionname "1.0" } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } databinding { enabled = true } } dependencies { }
does know how fix this? thanks.
databinding { enabled = true }
or
databinding.enabled = true
goes inside android
closure.
Comments
Post a Comment