Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 879
Kumari Shalini Avatar asked Dec 30 '17 12:12

Kumari Shalini


People also ask

What is Cordova plugin whitelist?

The plugin whitelist can be defined as the security model that is responsible for controlling an access to the external domains. The Cordova mainly offers a configurable security policy that defines which of the external sites can be accessed.

Is Android 12 supported by Cordova?

We have integrated the Android 12 SplashScreen API including the compatibility library into the core of the Cordova-Android platform to provide support for Android API 22+.

What is Cordova plugin Android?

Cordova-Android consists of an Android WebView with hooks attached to it. These plugins are represented as class mappings in the config. xml file. A plugin consists of at least one Java class that extends the CordovaPlugin class.


1 Answers

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]
like image 192
Bharat Biswal Avatar answered Oct 14 '22 17:10

Bharat Biswal