ANDROID打包錯誤ERROR:EXECUTION FAILED FOR TASK ´:APP:LINTVITALRELEASE´.

來源:互聯網
上載者:User

標籤:ati   新浪微博   code   掃描   task   uil   sse   cat   blog   

來自:http://dditblog.com/itshare_657.html

今天修改之前的項目之後、準備打包的時候、一起打包不了、一直提示有問題、錯誤是一些什麼Strings.xml裡面的一些資訊、有點看不懂、我也有嘗試著改一下string.xml裡面報錯的地方、但仍然還是打包不了、然後往下翻的時候看到最後的提示訊息如下

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      }  }  ...

 

解決方案

其實解決方案已經提示出來了、就是在對應的項目build.gradle裡面添加一個配置、在app的build.gradle裡的android{}中添加如下代碼、然後再次運行Generate Signed Apk就正常了

android {    compileSdkVersion 23    buildToolsVersion ´25.0.0´    defaultConfig {        applicationId "com.luzhiyao.sgongdoocar"        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    }}

 

若資源對你有協助、瀏覽後有很大收穫、不妨小額打賞我一下、你的鼓勵是維持我不斷寫部落格最大動力

想擷取DD部落格最新代碼、你可以掃描下方的二維碼、關注DD部落格公眾號(ddblogs)

或者你也可以關注我的新浪微博、瞭解DD部落格的最新動向:DD部落格官方微博(dwtedx的微博)

如對資源有任何疑問或覺得仍然有很大的改善空間、可以對該博文進行評論、希望不吝賜教

為保證及時回複、可以使用部落格留言板給我留言: DD部落格留言板(dwtedx的留言板)

感謝你的訪問、祝你生活愉快、工作順心、歡迎常來逛逛

ANDROID打包錯誤ERROR:EXECUTION FAILED FOR TASK ´:APP:LINTVITALRELEASE´.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.