Skip to content
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

大佬,编译项目报错 #104

Open
KaelInvoker opened this issue Mar 7, 2022 · 9 comments
Open

大佬,编译项目报错 #104

KaelInvoker opened this issue Mar 7, 2022 · 9 comments

Comments

@KaelInvoker
Copy link

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

@huangchengzuo
Copy link

huangchengzuo commented Mar 7, 2022 via email

@KaelInvoker
Copy link
Author

我的运行环境
[√] 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!

@Liberations
Copy link

+1

1 similar comment
@Zyh960130
Copy link

+1

@taichushouwang
Copy link

这个只是warning不是报错的。应该还有其他的log吧?如果是Android的话,看一下是不是AndroidX的问题。
在\android\gradle.properties,这个文件中添加新的一行android.useAndroidX=true

@huangchengzuo
Copy link

huangchengzuo commented Apr 14, 2022 via email

@Martin-zhq
Copy link

我这切换1.x版本一堆库提示是2.x,搞成2.x版本,又报这错,查了解决了这错又出新错误。。😂

@huangchengzuo
Copy link

huangchengzuo commented Jun 30, 2022 via email

1 similar comment
@huangchengzuo
Copy link

huangchengzuo commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants