Java – lint found a fatal error when assembling the release target

I am compiling my application for publishing, and I receive an error saying:

<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:\Users\Jackson\Desktop\SafetyNet\app\src\main\res\layout\activity_mock.xml"
        line="35"
        column="9"/>
</issue>

Solution

If you study it carefully, there will be a more specific error in logcat If you can't see anything in logcat, go to

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

You'll find the log there If you still can't solve the problem, please publish it in your problem

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>