[英]Kotlin Multiplatform Mobile targetSdk deprecated
I set up my build.gradle.kts
file in the shared
module of my KMM project like the following snippets shows:我在我的 KMM 项目的
shared
模块中设置了我的build.gradle.kts
文件,如以下片段所示:
android {
namespace = "com.my.project"
compileSdk = 33
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
defaultConfig {
minSdk = 24
targetSdk = 33
}
}
For the targetSDK
I get the following warning:对于
targetSDK
,我收到以下警告:
targetSdk: Int?' is deprecated. Will be removed from library DSL in v9.0
How can I migrate this part and set the targetSdk
version appropriately in my KMM project for the Android project?如何迁移这部分并在我的 KMM 项目中为 Android 项目适当设置
targetSdk
版本?
It is only advisory property, you could safely delete it.它只是建议属性,您可以安全地删除它。
minSdk
is enough. minSdk
就足够了。 See LibraryBaseFlavor reference deprecation message.请参阅LibraryBaseFlavor 参考弃用消息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.