Because the project iteration, each release will produce a lot of legacy waste resource file, manual cleaning too time-consuming and energy, to develop the automatic cleaning resource file demo;Combined with Android studio lint tools, generate lint_result.XML. Project Settings white list, prevent the resource file using reflection was mistakenly deleted. structure:     <issue         id="ResAuto"         severity="Fatal"         message="In Gradle projects, always use http://schemas.android.com/apk/res-auto for custom attributes"         category="Correctness"         priority="9"         summary="Finds resource namespaces with hardcoded package names"         explanation="In Gradle projects, the actual package used in the final APK can vary;"         errorLine1="    xmlns:app=&quot;http://schemas.android.com/apk/res/xxxxdemo; "         errorLine2="    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">         <location             file="D:\xxx\res\layout\xxx.xml"             line="3"             column="5"/>     </issue>