Cordova failed to install 'cordova-plugin-whitelist': Error: ENOENT: no such file or directory AndroidManifest.xml

Kumari Shalini picture Kumari Shalini · Dec 30, 2017 · Viewed 8k times · Source

I have Cordova 8.0.0 on OSx 10.13.2 with Node v8.5.0 and npm v5.5.1.

After adding plugin cordova-plugin-ibeacon, when I do a cordova platform add android, I am getting following error:

failed to install 'cordova-plugin-whitelist': Error: ENOENT: no such file or directory AndroidManifest.xml

Screenshot:

Screenshot

Answer

Bharat Biswal picture Bharat Biswal · Dec 30, 2017

You are using cordova-android@~7.0.0

I have faced same issues with recent pull of cordova-android repo with Cordova 8.0.0

Downgrade cordova-android to 6.4.0 as follows:

cordova platform remove android
cordova platform add [email protected]