So I cloned my aleady started Ionic project, then I do npm install && ionic cordova build android, there was no problem with npm install, but when building for Android, I have this error :
Error: Uh oh!
ENOENT: no such file or directory, open '/home/dlazzy/project_dir/platforms/android/AndroidManifest.xml'
So I can’t build anymore for Android… Before resetting my computer I already have node@7.8.0, codova@7.0.1 and ionic@3.10.3 and there was no problem
Thanks for your help
My project have <engine name="android" spec="^7.0.0" /> in config.xml currently on the repository.
Also "cordova-android": "^7.1.0" in package.json.
I will try what you say by removing and adding latest android platform thanks.
I found one solution without downgrade cordova-android. What I did:
Added <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" /> in config.xml, in plugins/plugin.xml (inside platform android tag) and in all plugin.xml(inside platform android tag too) of all plugins installed.
And I changed var manifestPath = path.join(ctx.opts.projectRoot, 'platforms/android/AndroidManifest.xml');
to var manifestPath = path.join(ctx.opts.projectRoot, 'platforms/android/app/src/main/AndroidManifest.xml');
in plugins/updateMultidexManifest.js
It seems the project is missing cordova.js on platforms folder & while building it missing some important files , So you can run below commands for respective platforms.