Reputation: 189
I am taking a flutter course, and i have downloaded the resources of the course to run it in my device, but there is an error:
AndroidManifest.xml could not be found.
Please check C:\Users\manal\Downloads\state-02-detail-screen\android\AndroidManifest.xml for errors.
No application found for TargetPlatform.android_x86.
Is your project missing an android\AndroidManifest.xml?
Consider running "flutter create ." to create one.
as shown in the picture, in other flutter projects, in top left, there is always item called 'Android' under list of project, but here it doesn't appear
Upvotes: 4
Views: 5516
Reputation: 35
"AndroidManifest.xml could not be found" this error occur because Android Studio or Gradle cannot locate the Android-specific files. And if you have downloaded a resource you can consider deleting android
folder to avoid gradle verison compatibilities issues and run flutter create
then flutter run
Upvotes: 0
Reputation: 51
check Folder "Android" is there if not just run "flutter create ."
after this you will find Android folder just run your code it should work.Thanks
Upvotes: 0
Reputation: 11
This is the problem of the old version, delete the SDK flutter and download the new version and the problem will go away
Upvotes: 1