Issue performing lint command in Android Studio

耗尽温柔 提交于 2019-12-08 06:45:28

问题


I am currently working on a android application which has CI/CD implementation. Everything was working as expected for gradle version 2.0.1. I was able to run ./gradlew clean build command but recently I have upgraded Application to gradle version 3.4.1. I am able to run the application on Android Device and Android Emulator. However When I am running the same command in terminal build process is getting haulted while doing lint analysis.

I was using android studio version 3.0.1 with gradle version 2.0.1. Application has CI implementation using Jenkins. project was building fine with the configurations when built using ./gradlew clean build.

Recently I have upgraded Android studio to version 3.4.1 and also gradle to 3.4.1 and migrated project from support library to AndroidX.

I am able to upgrade project with some minor warnings. Also able to ran project on Mobile device and on emulator.

However when I try to build project using gradle command then progress is getting stuck while performing lint and goes in infinite loop. I kept it running for 18 hrs and it kept running.

./gradlew clean build

Project should build fine but somehow lint is not getting completed. Is there any way I can resolve this issue or I can skip lint checks while building the code.

来源:https://stackoverflow.com/questions/56807080/issue-performing-lint-command-in-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!