me.apla.cordova.app-preferences: Failed to install 'cordova-plugin-app-preferences': Error: ENOENT: no such file or directory

Issue: Every time I try to install this plugin, I keep getting these errors. Here is one snippet of what I keep on getting:

Plugin "cordova-plugin-app-preferences" already installed on android. Installing "cordova-plugin-app-preferences" for browser unhandled exception { Error: ENOENT: no such file or directory, open 'platforms/android/src/me/apla/cordova/AppPreferencesActivity.java' errno: -2, code: 'ENOENT', syscall: 'open', path: 'platforms/android/src/me/apla/cordova/AppPreferencesActivity.java' } Failed to install 'cordova-plugin-app-preferences': Error: ENOENT: no such file or directory, open 'platforms/android/src/me/apla/cordova/AppPreferencesActivity.java' (node:8160) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT: no such file or directory, open 'platforms/android/src/me/apla/cordova/AppPreferencesActivity.java' (node:8160) [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.

After deleting it manually, I try doing a clean install of it:

Installing "cordova-plugin-app-preferences" for android Android Studio project detected unhandled exception { Error: ENOENT: no such file or directory, open 'platforms/android/src/me/apla/cordova/AppPreferencesActivity.java' errno: -2, code: 'ENOENT', syscall: 'open', path: 'platforms/android/src/me/apla/cordova/AppPreferencesActivity.java' } Failed to install 'cordova-plugin-app-preferences': Error: ENOENT: no such file or directory, open 'platforms/android/src/me/apla/cordova/AppPreferencesActivity.java' (node:8196) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT: no such file or directory, open 'platforms/android/src/me/apla/cordova/AppPreferencesActivity.java' (node:8196) [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.

As you can see, there is no difference of when I try to install this, or reinstall this.


Please specify your environment

Plugin version:

  • released version: 0.99.3
  • repository master

Toolchain:

  • Cordova cli
  • Phonegap cli
  • Phonegap cloud
  • Ionic
  • Other: _____

Platforms affected:

  • Android
  • iOS/macOS
  • LocalStorage fallback for browser and blackberry
  • Windows and Windows Phone 8.1 and later
  • Windows Phone 8 and earlier (deprecated)

What the scope of your problem:

  • General functionality (store/fetch/remove/clearAll)
  • Suites
  • Cloud synchronization and events
  • Preferences pane generation and display
  • Installation

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Reactions: 7
  • Comments: 22

Commits related to this issue

Most upvoted comments

@mapicard to install the patched version use:

cordova plugin add https://github.com/vash15/me.apla.cordova.app-preferences

@jacobg Because of the reverse domain naming convention in the repository name plugman kept giving me ‘Could not fetch <plugin> from registry’ errors. This caused trouble when installing from scratch on our CI server.

To fix this I’ve re-hosted your fork here: https://bitbucket.org/packt-internal/cordova-plugin-app-preferences/src/master/

With the same repo-name as the plugin name, that tends to work, if anyone has the same trouble when reinstalling platforms or running cordova prepare then use this hosted copy with:

cordova plugin add https://bitbucket.org/packt-internal/cordova-plugin-app-preferences.git

Thanks for sorting out Cordova 7+ support.

The forked version at https://github.com/vash15/me.apla.cordova.app-preferences fixes the issue. Please merge it in.

@owner please patch this… Its been too long and I am just waiting for this plugin to work ( not able to migrate to Cordova 8.0.0). @jacobg lemme try the patch… Thanks in advance…

Any news about this issue?

Having the same issue here. How can we get an updated version of the plugin?

Hi. Any news of this ?

@jacobg please submit a PR for your fixes

Having the same issue here, any ideas?