Android上的Kotlin-是否有最低API级别要求? [英] Kotlin on Android - is there a minimum API level requirement?

查看:294
本文介绍了Android上的Kotlin-是否有最低API级别要求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在认真考虑在未开发的Android项目上使用Kotlin,但是我担心连锁反应,其中最重要的是最低要求的API级别.

I am seriously considering using Kotlin on a greenfield Android project, but am concerned about knock-on implications, the most significant of which is a minimum required API level.

在其他平台上,新语言需要特定的操作系统版本(例如,Swift需要iOS 7),我想知道这里是否有类似的要求?

On other platforms, new languages have required a certain OS version (e.g. Swift requiring iOS 7) and I wondered whether there were similar requirements here?

我一直在搜索各种Kotlin/Android常见问题解答和Stackoverflow,但找不到这些信息.

I've been searching through various Kotlin/Android FAQs and Stackoverflow but have not been able to find this information.

推荐答案

否. API级别没有这样的要求,因为这两个并不直接相关.无论如何,请参见官方常见问题解答

No. There's no such requirement for the API level as these two are not directly related. Anyway, see official FAQ

Kotlin支持哪些版本的Android?

Which versions of Android does Kotlin support?

所有人! Kotlin与JDK 6兼容,因此具有Kotlin的应用程序 安全地在较旧的Android版本上运行.

All of them! Kotlin is compatible with JDK 6, so apps with Kotlin safely run on older Android versions.

这篇关于Android上的Kotlin-是否有最低API级别要求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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