{"id":1276,"date":"2023-03-18T10:03:54","date_gmt":"2023-03-18T02:03:54","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1276"},"modified":"2023-04-29T09:22:48","modified_gmt":"2023-04-29T01:22:48","slug":"android-databinding-record","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/18\/android-databinding-record\/","title":{"rendered":"Android DataBinding \u91c7\u5751\u8bb0\u5f55"},"content":{"rendered":"<h3>NoClassDefFoundError: Failed resolution of: Landroidx\/databinding\/DataBinderMapperImpl<\/h3>\n<p><code>app module<\/code> \u548c \u76f8\u5173\u7684 <code>\u5b50 module<\/code> \u5747\u9700\u914d\u7f6e<\/p>\n<p><!-- more --><\/p>\n<pre><code>android {\n\n    dataBinding {\n        enabled = true\n    }\n}<\/code><\/pre>\n<h3>Cause: couldn&#8217;t make a guess for xxx<\/h3>\n<pre><code>Cause: couldn&#039;t make a guess for cc.androidx.app_widget.adapter.BaseRecyclerViewAdapter.entity.Person<\/code><\/pre>\n<p>\u9519\u8bef\u5206\u6790:\u00a0\u95ee\u9898\u51fa\u5728type\u5f15\u7528\u5bf9\u8c61\u7684\u5305\u540d\u5305\u542b\u4e86\u5927\u5199<br \/>\n\u89e3\u51b3\u65b9\u6cd5:\u00a0\u5305\u8def\u5f84\u90fd\u4e3a\u5c0f\u5199<\/p>\n<pre><code class=\"language-xml\">&lt;data&gt;\n    &lt;variable\n        name=&quot;person&quot;\n        type=&quot;cc.androidx.app_widget.adapter.brva.entity.Person&quot;\/&gt;\n\n    &lt;variable\n        name=&quot;presenter&quot;\n        type=&quot;cc.androidx.app_widget.adapter.brva.entity.PersonPresenter&quot;\/&gt;\n&lt;\/data&gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>NoClassDefFoundError: Failed resolution of: Landroidx\/d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[311],"tags":[319],"class_list":["post-1276","post","type-post","status-publish","format-standard","hentry","category-android-advance","tag-databinding"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1276","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1276"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1276\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}