Android Data Binding: missing DataBinderMapper class -
java.lang.noclassdeffounderror: android.databinding.databindermapper @ android.databinding.databindingutil.<clinit>(databindingutil.java:31) @ com.example.mainactivity.oncreate(mainactivity.java:13) @ android.app.activity.performcreate(activity.java:5231) @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1087) @ android.app.activitythread.performlaunchactivity(activitythread.java:2148) @ android.app.activitythread.handlelaunchactivity(activitythread.java:2233) @ android.app.activitythread.access$800(activitythread.java:135) @ android.app.activitythread$h.handlemessage(activitythread.java:1196) @ android.os.handler.dispatchmessage(handler.java:102) @ android.os.looper.loop(looper.java:136) @ android.app.activitythread.main(activitythread.java:5001) @ java.lang.reflect.method.invokenative(native method) @ java.lang.reflect.method.invoke(method.java:515) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:785) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:601) @ dalvik.system.nativestart.main(native method)
i hope bug, face similar problem? unzipped classes.jar
under exploded-arr
folder, couldn't find databindermapper
class.
any workarounds / fixes appreciated.
you should include android-apt plugin in build.gradle in order generate android.databinding.databindermapper
class.
in project build.gradle:
dependencies { classpath 'com.android.tools.build:gradle:1.3.1' classpath 'com.android.databinding:databinder:1.0-rc2' classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' //.... more }
in each module build.gradle:
apply plugin: 'com.android.application' apply plugin: 'com.android.databinding' apply plugin: 'com.neenbedankt.android-apt'
Comments
Post a Comment