londonappbrewery / bmi-calculator-flutter

Learn to Code While Building Apps - The Complete Flutter Development Bootcamp
https://www.appbrewery.co
192 stars 837 forks source link

deprecated version of the Android embedding #24

Open devnoaman opened 3 years ago

devnoaman commented 3 years ago

hi , i have this error in project , please upgrade it

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

simplydt commented 1 year ago

The easiest fix I found is to setup the project from scratch and import the files manually from the deprecated project offered here.

I did it and uploaded in case anyone wants to just branch out from my stub project: https://github.com/simplydt/bmi_calculator_flutter_2023

HimanshuDhiman0009 commented 1 year ago

Complete solved Project is here . https://github.com/HimanshuDhiman0009/bmi_himanshu for version control problem just replace your android folder from the android folder in this project.

eric-sison commented 1 year ago

The easiest fix is to delete the android folder, then open your android studio terminal. In the terminal, make sure you are in the root directory of your project and type flutter create .

Note that the "dot" indicates to initialize a flutter project in that current directory.