Jerg :
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 "`_dynamic`" 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="@+id/_dynamic""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="C:\Users\Jackson\Desktop\SafetyNet\app\src\main\res\layout\activity_mock.xml"
line="35"
column="9"/>
</issue>
nupadhyaya :
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.