![](/img/trans.png)
[英]The command “./gradlew build connectedCheck” exited with 1
[英]How to fix error running ./gradlew check connectedCheck, after update AndroidStudio to 0.4.0?
在更新AndroidStudio之后,我將gradle更新為包裝器中的1.9
,並在build.gradle的依賴項中更新為0.7.+
。
從那時起,我在運行時遇到此錯誤./gradlew check connectedCheck
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:lint'.
> Lint found errors with abortOnError=true; aborting build.
編輯
gradle控制台還顯示以下消息:
Ran lint on variant release: 69 issues found
Ran lint on variant debug: 69 issues found
Wrote XML report to <PROJECT>/app/build/lint-results.xml
Wrote HTML report to <PROJECT>/app/build/lint-results.html
:app:lint FAILED
你應該看看lint錯誤是什么並修復它們(其中一些非常重要,所以你應該看看它們); 如果在錯誤窗格中找不到任何內容, Gradle Console應該有更詳細的錯誤消息。 如果你想讓它在沒有lint錯誤的情況下中止你的構建,那么錯誤消息會告訴你應該做什么:將它添加到你的build.gradle
文件中:
android {
lintOptions {
abortOnError false
}
}
閱讀更多: graint構建在lint任務上失敗
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.