Kotlin和android lint检查 [英] Kotlin and android lint checks

查看:315
本文介绍了Kotlin和android lint检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我真的很喜欢在Kotlin中编写android应用程序的代码-但我真的很想念lint.任何人都知道如何(至少部分地)将其取回.是否有一个使android java lint规则适应kotlin的项目? AFAIK lint并非仅在字节码上运行,因此需要进行一些手动转换. 目前我的主要痛点是,当我使用<函数时,我需要一个编译时错误. MINSDK级别 有人可以指出我正确的方向吗?

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 android java lint rules to kotlin? AFAIK lint is not running on bytecode only so there needs to be some manual converting to be done. My main pain-point at the moment is that I need a compile-time error when I use a function < MINSDK level Can someone point me in the right direction?

推荐答案

Kotlin团队正在努力支持针对Kotlin代码的Android Lint检查.您可以观看此问题以跟踪进度.

The Kotlin team is working on supporting Android Lint checks for Kotlin code. You can watch this issue to keep track of the progress.

这篇关于Kotlin和android lint检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆