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

Build failed due to use of deprecated Android v1 embedding. #9

Open
Shek863 opened this issue Jul 22, 2022 · 2 comments
Open

Build failed due to use of deprecated Android v1 embedding. #9

Shek863 opened this issue Jul 22, 2022 · 2 comments

Comments

@Shek863
Copy link

Shek863 commented Jul 22, 2022

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

@himanshuchharra
Copy link

himanshuchharra commented Jul 31, 2022

I also got the same warning. Warning doesn't prevent your program from execution.
Followed the page https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects and made changes (one line code) in android/app/src/main/AndroidManifest.xml file.
Old configuration
<application
android:name="io.flutter.app.FlutterApplication"
>
<!-- code omitted -->
</application>

New configuration
<application
android:name="${applicationName}"
>
<!-- code omitted -->
</application>

It worked for me.

@hunainabbasi
Copy link

@himanshuchharra even after doing this I am facing BUild Failed.
Your project requires a newer version of the Kotlin Gradle plugin.

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

3 participants