Was*_*dar 2 android android-layout dart android-studio flutter
我收到以下错误。
This app is using a deprecated version of the Android embedding.
To avoid unexpected runtime failures-, or future build failures, try to migrate this app to the V2 embedding.
Take a look at the docs for migrating an app: https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects
The plugin `audio_session` requires your app to be migrated to the Android embedding v2. Follow the steps on https://flutter.dev/go/android-project-migration and re-run this command.
Run Code Online (Sandbox Code Playgroud)
该应用程序已经使用 Android 嵌入,我使用的是 Flutter 2.23 版本。我也检查了这个。https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects
我也没有使用该audio_session插件,并且不知道哪个库正在使用它。有人可以帮忙吗?
我通过将应用程序标记中的“io.flutter.app.FlutterApplication”更改为“${applicationName}”解决了此错误。
之前的配置:
<application
android:name="io.flutter.app.FlutterApplication"
>
<!-- code omitted -->
</application>
Run Code Online (Sandbox Code Playgroud)
新配置:
<application
android:name="${applicationName}"
>
<!-- code omitted -->
</application>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7906 次 |
| 最近记录: |