Android enable warning for custom library if new version is available

混江龙づ霸主 提交于 2019-12-25 08:47:50

问题


With the support libraries, for example, Android Lint will show a warning if the library is not using the latest version. However, when I created my own library and published it through Bintray, no warning is displayed when using an older version. Is there any way to enable this behavior for custom libraries as well?


回答1:


You can do the following in your Android Studio.

Settings > Editor > Inspections > "Newer Library Versions Available"

This will introduce a lint check on your gradle dependencies. But, remember this may slowdown your compile time. Another alternative is,

Analyze > "Run Inspection By Name" > "Newer Library Versions Available"



来源:https://stackoverflow.com/questions/38902571/android-enable-warning-for-custom-library-if-new-version-is-available

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