This's my first flutter App and for some reason the Android launcher icon stopped showing so I was trying to fix that, I did a bunch of things and ended up with this error.
p.s I ran flutter create
. with no luck.
The IDE log
No application found for TargetPlatform.android_x86.
Is your project missing an android/app/src/main/AndroidManifest.xml?
Consider running "flutter create ." to create one.
I solved this by flutter clean
.
If flutter clean
doesnt work manually delete build
folder in project root directory.
Add package back in the manifest file.
Android Studio 'Chipmunk' (2021.2.1) had recommended that I remove package
in AndroidManifest.xml
:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example">
And it added namespace in android/app/build.gradle
:
namespace 'com.example'
This didn't immediately break my app, but after cleaning everything, it broke it, and the only fix was to revert, so that the package name remained in the AndroidManifest.xml
, as it was before.
The error I was getting was:
package identifier or launch activity not found.
Please check /example/android/app/src/main/AndroidManifest.xml for errors.
No application found for TargetPlatform.android_arm64.
Is your project missing an android/app/src/main/AndroidManifest.xml?
Consider running "flutter create ." to create one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With