0

酒吧得到

这些插件flutter_twitter_login使用了已弃用的 Android 嵌入版本。为避免意外的运行时失败或未来的构建失败,请尝试查看这些插件是否支持 Android V2 嵌入。否则,请考虑删除它们,因为 Flutter 的未来版本将删除这些已弃用的 API。如果您是插件作者,请查看将插件迁移到 V2 嵌入的文档: https ://flutter.dev/go/android-plugin-migration 。

运行控制台

C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\permission_handler-6.1.3\android\src\main\java\com\baseflow\permissionhandler\ServiceManager.java:152: warning: [deprecation] getDefaultAdapter() in BluetoothAdapter has been deprecated
        final BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
                                                                  ^
error: warnings found and -Werror specified
1 warning

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':permission_handler:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 4m 37s
4

1 回答 1

0

尝试将此命令放在控制台中以更新到插件的最新版本 flutter pub upgrade --major-versions

于 2021-12-11T02:30:40.457 回答