VNAPNIC / flutter_nearby_connections

Flutter plugin support peer-to-peer connectivity and the discovery of nearby devices for Android vs IOS
https://pub.dev/packages/flutter_nearby_connections
BSD 2-Clause "Simplified" License
106 stars 68 forks source link

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

Open edoardoc opened 7 months ago

edoardoc commented 7 months ago

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 commented 5 months ago

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.