App Crashes when i try to run on a device

My app builds fine but it crashes when i try to run on a real device.
i’ve tried to look around to see what the problem could be and i noticed two things

  1. AndroidManifest.xml is missing from platforms/android
  2. <engine name="android" spec="^7.0.0" /> from config.xml

Android studio is working fine on my PC and apks generated do not crash.

Does it also crash if you try to build and run a new project created with ionic start?

yes even with a blank template project, it is still crashing.

Then something is broken with your environment.

What is your ionic info output?
What does ionic cordova requirements return?

Yes I know, something is broken in my environment, but I just can’t put my
finger on it. The AndroidManifest.xml is missing
how do I check ionic output and ionic Cordova requirement?

Run those commands on the command line and post their output.

i just ran ionic output and i got this:

cli packages: (C:\Users\Administrator.HP-PAVILION\AppData\Roaming\npm\node_modules)

** @ionic/cli-utils : 1.19.0**
** ionic (Ionic CLI) : 3.19.0**

global packages:

** cordova (Cordova CLI) : 8.0.0**

local packages:

** @ionic/app-scripts : 3.1.8**
** Cordova Platforms : android 7.0.0**
** Ionic Framework : ionic-angular 3.9.2**


** Node : v8.9.4**
** npm : 5.6.0**
** OS : Windows 10**

Environment Variables:

** ANDROID_HOME : not set**


** backend : pro**

ionic cordova requirements gave me this:

> cordova requirements
Android Studio project detected

Requirements check results for android:

Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-26,android-22,android-21,Google Inc.:Google APIs:21,android-20,android-19
Gradle: installed C:\Program Files\Android\Android Studio\gradle\gradle-2.2.1\bin\gradle

That looks very wrong.

What Android Studio are you using?
Install a standalone Gradle from

im using android studio 3.0.1

ive just downloaded and installed the latest gradle (version 4.5). what next?

AndroidManifest.xml is missing from platforms/android. Could that be problem?

If this normally is there, of course.

Did you remove and re-add the platform?

no i did not. In fact i just created a new project few minutes ago and AndroidManifest.xml is still missing.

Im using cordova-android@7.0.0
android manifest is inside platforms/app/src/main/

did you find? i got the same problem i think …