加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Java > 正文

java – Lint在组装发布目标时发现致命错误

发布时间:2020-12-15 05:14:53 所属栏目:Java 来源:网络整理
导读:我正在编译我的应用程序以便发布,我收到一条错误说: ????Lint在组装释放目标时发现致命错误. issue id="UnknownId" severity="Fatal" message="The id quot;`_dynamic`quot; is not defined anywhere." category="Correctness" priority="8" summary="Refer
我正在编译我的应用程序以便发布,我收到一条错误说:
????Lint在组装释放目标时发现致命错误.

<issue
    id="UnknownId"
    severity="Fatal"
    message="The id &quot;`_dynamic`&quot; is not defined anywhere."
    category="Correctness"
    priority="8"
    summary="Reference to an unknown id"
    explanation="The `@+id/` syntax refers to an existing id,or creates a new one if it has not already been defined elsewhere. However,this means that if you have a typo in your reference,or if the referred view no longer exists,you do not get a warning since the id will be created on demand. This check catches errors where you have renamed an id without updating all of the references to it."
    errorLine1="        app:layout_constraintBottom_toTopOf=&quot;@+id/_dynamic&quot;"
    errorLine2="        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    <location
        file="C:UsersJacksonDesktopSafetyNetappsrcmainreslayoutactivity_mock.xml"
        line="35"
        column="9"/>
</issue>

解决方法

如果你仔细研究,logcat中会有一个更具体的错误.如果你在logcat中看不到任何东西,请转到

/build/reports/lint-results-release-fatal.xml.

你会在那里找到日志.如果您仍然无法解决问题,请将其发布在您的问题中.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读