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

This app is using a deprecated version of the Android embedding. #51

Open
edoardoc opened this issue Dec 5, 2023 · 1 comment
Open

Comments

@edoardoc
Copy link

edoardoc commented Dec 5, 2023

Hello everybody

while doing

flutter run

in the example folder I get:

Warning
──────────────────────────────────────────────────────────────────────────────
Your Flutter application is created using an older version of the Android
embedding. It is being deprecated in favor of Android embedding v2. To migrate
your project, follow the steps at:

https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The detected reason was:

  /Users/eddy/projects/ttt/flutter_nearby_connections/example/android/app/src/main/AndroidManifest.xml uses
  `android:name="io.flutter.app.FlutterApplication"`
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Build failed due to use of deprecated Android v1 embedding.

is there any plan to upgrade this to the new embedding?
or
what is flutter most recent version that can be used to build and run the example?

@i19harada1a
Copy link

Hello, I had same issue, but I solved it.

Please try:

Edit your project name > Android > Manifest.xml

Maybe, this code is written

android:name="io.flutter.app.FlutterApplication"

then, please write over

android:name="${applicationName}"

and built again.

I tried to do this, I solved.
But still now, the real android devices don't work on sample code.

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

2 participants