I’m trying to remove a few plugins and i get a provider error
Uncaught (in promise): Error: No provider for ScreenOrientation! Error: No provider for ScreenOrientation! at injectionError (http://localhost:8100/build/vendor.js:1738:86) at noProviderError (http://localhost:8100/build/vendor.js:1776:12)
I remove the plugin doing
cordova plugin remove name-of-plugin
But if i try to do ionic cordova run android i get that error. I remove the plugin of the package.json but nothing works.
For example, if I use the plugin cordova-plugin-x-socialsharing to be able to reference it in my typescript files I use the ionic-native @ionic-native/social-sharing
Settings.bundle is generated by external tool, skipping
unhandled exception { Error: ENOENT: no such file or directory, unlink 'platforms/android/res/xml/apppreferences.xml'
errno: -2,
code: 'ENOENT',
syscall: 'unlink',
path: 'platforms/android/res/xml/apppreferences.xml' }
(node:7043) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT: no such file or directory, unlink 'platforms/android/res/xml/apppreferences.xml'
(node:7043) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I read elsewhere that this AppPreferences is not compatible with android 7.0.0+ and that there are other plugins that have issues too. With AppPreferences it is that the build folders do not seem to have the expected structure. So some files were not installed in the first place. When uninstalling the script tries to remove those files and fail.
I started a new project, moved my files and use the sqllite plugin instead.
Hi, First try to delete app-settings.json then try to remove plugins like , ionic cordova plugin rm cordova-plugin-app-preferences
its completely remove from plugins list.