FlutterDouBan
FlutterDouBan copied to clipboard
大佬,编译项目报错
Warning ────────────────────────────────────────────────────────────────────────────── Your Flutter application is created using an older version of the Android embedding. It's being deprecated in favor of Android embedding v2. Follow the steps at
https://flutter.dev/go/android-project-migration
to migrate your project. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
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
你好! 邮件已收到!谢谢!
我的运行环境 [√] Flutter (Channel stable, 2.5.2, on Microsoft Windows [Version 10.0.19043.1526], locale zh-CN) [√] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [√] Chrome - develop for the web [√] Android Studio (version 4.0) [√] Android Studio (version 2021.1) [√] Connected device (3 available)
• No issues found!
+1
+1
这个只是warning不是报错的。应该还有其他的log吧?如果是Android的话,看一下是不是AndroidX的问题。
在\android\gradle.properties,这个文件中添加新的一行android.useAndroidX=true
你好! 邮件已收到!谢谢!
我这切换1.x版本一堆库提示是2.x,搞成2.x版本,又报这错,查了解决了这错又出新错误。。😂
你好! 邮件已收到!谢谢!
你好! 邮件已收到!谢谢!