Manal
Manal

Reputation: 189

AndroidManifest.xml could not be found

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.

screenshot

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

Answers (4)

"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

Mohd Aqil
Mohd Aqil

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

amir torabi
amir torabi

Reputation: 71

As the instructions say, run

flutter create .

Upvotes: 3

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

Related Questions