-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
external_app_launcher: uses or overrides a deprecated API. #37
Comments
Same issue |
Having the same issue |
Same issue |
Same issue (on linux).
Removing the reference to external_app_launcher allows build to complete.
BTW: version 3.1.0 is also broken. |
I think it will resolved by this PR #39 |
Waiting for release 💕 |
I decided I did not want to wait any longer for a new release. I can confirm that changing
to
fixes the problem. Steps I used to verify this:
The PR #39 should be merged, and a new release produced. In the meantime, I'll be running off my fixed clone. |
For a "fix" to other packages with the same problem, see also flutter/flutter#153281 (comment) TLDR; in your flutter project, in android\build.gradle, add this code before the other subprojects {
afterEvaluate { project ->
if (project.extensions.findByName("android") != null) {
Integer pluginCompileSdk = project.android.compileSdk
if (pluginCompileSdk != null && pluginCompileSdk < 31) {
project.logger.error(
"Warning: Overriding compileSdk version in Flutter plugin: "
+ project.name
+ " from "
+ pluginCompileSdk
+ " to 31 (to work around https://issuetracker.google.com/issues/199180389)."
+ "\nIf there is not a new version of " + project.name + ", consider filing an issue against "
+ project.name
+ " to increase their compileSdk to the latest (otherwise try updating to the latest version)."
)
project.android {
compileSdk 31
}
}
}
}
} |
Note: C:\Users\vrica\AppData\Local\Pub\Cache\hosted\pub.dev\external_app_launcher-4.0.0\android\src\main\java\com\example\launchexternalapp\LaunchexternalappPlugin.java uses or overrides a deprecated API.
Flutter 3.19.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ba39319843 (7 weeks ago) • 2024-03-07 15:22:21 -0600
Engine • revision 2e4ba9c6fb
Tools • Dart 3.3.1 • DevTools 2.31.1
Please! What I have to do?
The text was updated successfully, but these errors were encountered: