Error:Execution failed for task ´:app:lintVitalRelease´. > Lint found fatal errors while assembling a release target. To proceed, either fix the issues identified by lint, or modify your build script as follows: ... android { lintOptions { checkReleaseBuilds false // Or, if you prefer, you can continue to check for errors in release builds, // but continue the build even when errors are found: abortOnError false } } ... 在app的build中添加下面的兩句話就好了,其實錯誤裏面已經提示出來了,仔細看就能發現 android { compileSdkVersion 23 buildToolsVersion ´25.0.0´ defaultConfig { applicationId "" minSdkVersion 14 targetSdkVersion 23 versionCode 5 versionName "1.1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile(´proguard-android.txt´), ´proguard-rules.pro´ } } //添加如下配置就ok了 lintOptions { checkReleaseBuilds false abortOnError false } }
Mr.Smile填坑記——打release包報錯Error:Execution failed for task ´:app:lintVitalRelease´.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.