libs.versions.toml does not highlight newer versions (Android Studio does)

已回答

Intellij Community Edition (2025.2.4 build 252.27397.103) 

Added libs.versions.toml to gradle folder. TOML plugin is installed (version 252.27397.109). 

Expecting highlights on older versions of libraries / plugins. This works as expected in Android Studio. Any suggestions?  

0

Hi Mike Kienzle13 , may I know if the target dependencies are related to Androids or not? I checked the inspection relates to versions, and it seems only Android-related versions can be inspected if there is a new one. (This requires Android plugin)

Meanwhile, could you please help to take a screenshot of the expected behavior in Android Studio?

IJ: Settings | Editor | Inspections | Android Lint: Correctness | Newer Library Versions Available

0

You are correct, it is an issue / feature related to Android target. I created a vanilla Kotlin project and a 2nd KMP project with only desktop as a target. New libraries not highlighted. 

I created another KMP project, this time with Android and desktop targets. Newer libraries are highlighted. 

I created a standalone Android project and newer libraries are highlighted. 

This is a screen shot from my Intellij vanilla Kotlin project. The description suggests this works with any dependency not just Android?

 

 

0

Hi Mike Kienzle13 , thank you for your reply.

It should be as expected. The inspection “Newer Library Versions Available” is under the section "Android Lint: Correctness", which means the inspection belongs to Andriod plugin, and it has its own range of codes to be inspected.

0

请先登录再写评论。