Reputation: 95
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>
Upvotes: 3
Views: 4075
Reputation: 1808
if you are using macbook just go to project directory and open build folder
search : "lint-results-release-fatal"
Open lint-results-release-fatal.html using safari/chrome and
Click on the Correctness and it will show exactly what are the error
Fix the error
Then Try release again.
All the best Good luck fellow developer
Upvotes: 3
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