You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey guys, I'm pretty new to flutter (mainly experienced in iOS Swift, Ruby, and JavaScript -- but dabbled in some Flutter examples). Want to build a cross-platform app in Flutter without reinventing the wheel/starting from scratch. This starter app is a really awesome idea and you guys have some amazing docs and presentation -- thanks for doing this!
I just cloned this today and am getting an error that the Android embedding version has been deprecated. If it's only for Firebase, I don't plan to use that anyway, as I plan to build my own REST API backend. However, I have absolutely no idea about this architecture! It would be awesome if this template could possibly be fixed/updated to use the new embedding API. Or, could it be something on my end? I'm running an M1 MacBook Pro with the following Flutter:
flutter doctor 04/9 12:13:37
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 2.12.0-4.1.pre, on macOS 12.3.1 21E258
darwin-arm, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version
32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 13.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] IntelliJ IDEA Community Edition (version 2021.3.2)
[✓] VS Code (version 1.66.1)
[✓] Connected device (2 available)
[✓] HTTP Host Availability
• No issues found!
This is my run output:
bash run_script.sh 04/9 12:12:40
+++++API SDK pub clean+++++
+++++API SDK pub get+++++
Running "flutter pub get" in api_sdk... 13.8s
+++++API SDK done+++++
+++++Shared pub clean+++++
+++++Shared pub get+++++
Running "flutter pub get" in shared... 2,866ms
+++++Shared done+++++
+++++Main app pub clean+++++
Cleaning Xcode workspace... 1,492ms
+++++Main app pub get+++++
Running "flutter pub get" in app... 5.9s
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 `cloud_firestore` 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.
+++++Main app run+++++
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 `cloud_firestore` 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.
The text was updated successfully, but these errors were encountered:
I had this same problem, and went to the suggested page.
I was at least able to get flutter run to not fail by editing
android/app/src/main/AndroidManifest.xml
As shown in that file, replacing android:name="io.flutter.app.FlutterApplication"
With android:name="${applicationName}"
The other part of that upgrade apparently is to apply to android/app/src/main/java/[your/package/name]/MainActivity.java
Which does not exist in this project, so presumably doesn't need to be changed
nachbar
added a commit
to nachbar/flutter-starter
that referenced
this issue
May 7, 2022
Hey guys, I'm pretty new to flutter (mainly experienced in iOS Swift, Ruby, and JavaScript -- but dabbled in some Flutter examples). Want to build a cross-platform app in Flutter without reinventing the wheel/starting from scratch. This starter app is a really awesome idea and you guys have some amazing docs and presentation -- thanks for doing this!
I just cloned this today and am getting an error that the Android embedding version has been deprecated. If it's only for Firebase, I don't plan to use that anyway, as I plan to build my own REST API backend. However, I have absolutely no idea about this architecture! It would be awesome if this template could possibly be fixed/updated to use the new embedding API. Or, could it be something on my end? I'm running an M1 MacBook Pro with the following Flutter:
This is my run output:
The text was updated successfully, but these errors were encountered: