我收到一条消息,表明此函数(或其构造函数)已被弃用。该函数有一个新的构造函数,它接受附加参数'Geocoder.GeocodeListener listener',但该新构造函数需要 API 级别 33 及以上。对于较低的API级别我应该做什么,解决方案是什么?
android geocoding kotlin deprecation-warning android-tiramisu
API 23已弃用THEME_HOLO_LIGHT。
那么,当我在API <23上使用它时,为什么仍会收到弃用警告?
我的相关部分build.gradle:
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
useLibrary "org.apache.http.legacy"
defaultConfig {
applicationId "com.my.app"
minSdkVersion 14
targetSdkVersion 23
}
Run Code Online (Sandbox Code Playgroud)