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"