简体   繁体   中英

NoClassDefFoundError: Failed resolution of: DataBinderMapper

I just integrated this library and when I run the application, I got this error:

    java.lang.NoClassDefFoundError: Failed resolution of: Landroid/databinding/DataBinderMapper;
    Caused by: java.lang.ClassNotFoundException: Didn't find class "android.databinding.DataBinderMapper" on path: DexPathList[ ...

I haven't enabled data binding in my app's module. Should I enable it? Library also uses Kotlin. Is that the cause?

Include the library at your Runtime classpath.

you can do something like this:

java -cp "Test.jar;lib/*" my.package.MainClass

Or if you are using tomcat, then add it at tomcat classpath: go though this link Including external jar in Tomcat ClassPath

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM