app_installer
app_installer copied to clipboard
Is there a plan to replace the deprecated API?
Thanks for developing this package.
When I built the app bundle, there was a altertAppInstallerPlugin.java uses or overrides a deprecated API.
Is there a plan to replace the deprecated API?
Can you output more log information? I will update in time
Here is the warning message. I am not a java developer. have no idea about the deprecated API.
Note: /Users/.../development/flutter/.pub-cache/hosted/pub.dartlang.org/app_installer-1.1.0/android/src/main/java/com/zero/app_installer/AppInstallerPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Can you provide me with your configuration file, the important thing is compileSdkVersion
android {
compileSdkVersion 31
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
minSdkVersion 21
targetSdkVersion 31
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
}
also, starting with Android 14 installing APKs and writing third party stores gets way better with an improved PackageInstller API, see release notes
imo this package should forward that functionaility