Jerg
Jerg

Reputation: 95

Lint found a fatal error while assembling a release target

I was compiling my app for release and I have received an error saying this: Lint found fatal errors while assembling a release target.

<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>

Upvotes: 3

Views: 4075

Answers (2)

Muhammad Asyraf
Muhammad Asyraf

Reputation: 1808

if you are using macbook just go to project directory and open build folder
search : "lint-results-release-fatal" enter image description here

Open lint-results-release-fatal.html using safari/chrome and enter image description here

Click on the Correctness and it will show exactly what are the error enter image description here

Fix the error Then Try release again.



All the best Good luck fellow developer

Upvotes: 3

nupadhyaya
nupadhyaya

Reputation: 1944

There will be a more specific error in the logcat if you dig through it. If you can't see anything in the logcat, go to

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

You will find the logs there. Post it in your question, if you still can't resolve it.

Upvotes: 13

Related Questions