Problem with my AndroidManifest.xml file

Hi friends please I would like you to say what is wrong with my application, when I run the command ‘ionic cordova platform add android’ I have an error that tell me that the file manifest.xml is not in the directory

…\ platforms \ android \ AndroidManifest.xml ’ and yet it is rather in the folder

…\ platforms \ android \ app \ src \ main \ AndroidManifest.xml

You are using cordova-android 7 I assume?
This changed the project structure, and probably one of the plugins you are using ist not adapter for that.

Post your ionic info output please.

Thank you that’s good I found my project had problems because it was trying to generate a project android studio .

I just renamed my project folder so that it does not detect Android studio anymore

Hi Sujan,

I’m having this issue even where creating a new ionic project from scratch via cli. Where should I be checking plugin compatibility / why does the starter project have incompatible plugins?

No idea. Especially as you didn’t provide your ionic info output.


cli packages: (C:\Users\Justin\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.6
Cordova Platforms  : android 7.0.0
Ionic Framework    : ionic-angular 3.9.2


Android SDK Tools : 26.1.1
Node              : v6.10.0
npm               : 3.10.10
OS                : Windows 10

Environment Variables:

ANDROID_HOME : C:\Users\Justin\.android\sdk


backend : legacy

For any future viewers: the problem ended up being with the cordova tools plugin in vscode rather than a plugin. You can see the issue and its resolution here:

Coding in TS with VS Studio, mmm

yes it’s a bug with VS Studio from MicroSoft… creating white spaces in code… Only if you code from Windows.

I have the same problem in ubuntu with global cordova 8.0.0, cordova-android 7.0.0 in the project and i’m not using vs code. I use webstorm.
I can’t install any plugin with cordova-android 7.0.0.