Kotlin and android lint checks

后端 未结 3 744
Happy的楠姐
Happy的楠姐 2021-02-13 01:27

I am really loving to code android apps in Kotlin recently - but I really miss lint. Anyone knows how to get this back ( at least partially ). Is there a project that adapts the

3条回答
  •  再見小時候
    2021-02-13 02:01

    In the release of Android Studio 3.2, Lint can able to check.

    Follow below step to enable lint check for Kotlin:

    • To enable these checks, go to File > Preferences > Editor > Inspections and check the rules that you want to enable under Kotlin Interoperability, as shown below.

    • You can then run the checks by selecting Analyze > Inspect Code from the main menu.

    Check more info at Lint checks for Java/Kotlin interoperability

    I hope it helps us.

提交回复
热议问题