I set up my build.gradle.kts
file in the shared
module of my KMM project like the following snippets shows:
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: 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?
It is only advisory property, you could safely delete it. minSdk
is enough. See LibraryBaseFlavor reference deprecation message.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.