-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Fluttergood first issueRelatively approachable for first-time contributorsRelatively approachable for first-time contributorsplatform-androidAndroid applications specificallyAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versiontoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
When I run flutter channel stable (for example) in my root user directory, I see the following warning:
Your Flutter application is created using an older version of the Android
embedding. It is being deprecated in favor of Android embedding v2.
This, however, makes no sense at all because my root user directory is not a Flutter project. It does, however, contain an android directory (which has nothing to do with the android directories you will find in Flutter projects).
Steps to Reproduce
- cd to a directory that contains a folder named
android flutter channel stable(or a different channel if you are already on stable)
Click to expand full logs
D:\>flutter channel stable
╔════════════════════════════════════════════════════════════════════════════╗
║ A new version of Flutter is available! ║
║ ║
║ To update to the latest version, run "flutter upgrade". ║
╚════════════════════════════════════════════════════════════════════════════╝
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Warning
──────────────────────────────────────────────────────────────────────────────
Your Flutter application is created using an older version of the Android
embedding. It is being deprecated in favor of Android embedding v2. Follow the
steps at
https://flutter.dev/go/android-project-migration
to migrate your project. You may also pass the --ignore-deprecation flag to
ignore this check and continue with the deprecated v1 embedding. However,
the v1 Android embedding will be removed in future versions of Flutter.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The detected reason was:
No `D:\android\AndroidManifest.xml` file
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Switching to flutter channel 'stable'...
Proposal
Before checking if there is an AndroidManifest.xml in an android directory and if that directory exists, check if the working directory is a Flutter project.
Steps
- Check if the current working directory is a Flutter project → check for a
pubspec.yamlfile. - Check if there is an
androiddirectory. - Check for the
AndroidManifest.xmlfile.
Currently, step 2. is missing.
spitfire55
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Fluttergood first issueRelatively approachable for first-time contributorsRelatively approachable for first-time contributorsplatform-androidAndroid applications specificallyAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versiontoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.