londonappbrewery / dicee-flutter

Starter code for the Dicee project in the Complete Flutter Bootcamp
https://www.appbrewery.co
217 stars 1.09k forks source link

Build failed due to deprecated Android V1 Embedding. #54

Open aadishsamir123 opened 1 year ago

aadishsamir123 commented 1 year ago

Build failed due to use of deprecated Android v1 embedding.

Hello. I am doing the dicee flutter project and whenever I build the stub project, I see this error saying "Build failed due to use of deprecated Android v1 embedding." I searched this up but it says to change some stuff in some AndroidManifest.xml and some build.gradle, but I don't know how I can do it. I can't continue with the project if this error is not fixed. Screenshot 2023-03-28 at 8 43 36 AM I use VSCode but I don't think it is related to the error.

Please someone help me to fix this.

doc2dev commented 1 year ago

Quick hack: create a new Flutter project, copy over what you need (code, assets, dependencies).

kazimayaan commented 1 year ago

add this meta tag to androidmanifest inside app/src and remove the old meta tag

tuweiwen commented 10 months ago

remove attribute android:name="io.flutter.app.FlutterApplication" in application tag, and insert <meta-data android:name="flutterEmbedding" android:value="2"/> into your activity tag