3

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>

1
  • 1
    You are having id problems; if you are certain that you have defined the id, then clean your project and rebuild Commented Oct 2, 2018 at 5:16

2 Answers 2

13

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.

Sign up to request clarification or add additional context in comments.

8 Comments

Sorry, is this the error? If so I'm afraid I'm terribly lost.
can you post your app//build/reports/lint-results-release-fatal.xml file?
Its usually something very small.. Do you have translations in your app?
In your project navigation, click on the dropdown list which says android and select project instead. Then follow the path to app//build/reports/lint-results-release-fatal.xml
can you post it
|
3

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.