GeekyAnts / GeekyAnts/flutter-starter

deprecated version of Android embedding -- migrate to V2 embedding

Open
#27 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
482
Forks
105
PR merge metrics
No merged PRs in 30d

Description

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.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.