Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible missing plugin #13

Open
drid opened this issue Dec 7, 2022 · 2 comments
Open

Possible missing plugin #13

drid opened this issue Dec 7, 2022 · 2 comments

Comments

@drid
Copy link

drid commented Dec 7, 2022

Adding android project...
Creating Cordova project for the Android platform:
	Path: platforms/android
	Package: de.dl9rdz
	Name: rdzSonde
	Activity: MainActivity
	Android target: android-30
Subproject Path: CordovaLib
Subproject Path: app
Android project created with [email protected]
Discovered plugin "cordova-plugin-androidx-adapter". Adding it to the project
Installing "cordova-plugin-androidx-adapter" for android
Adding cordova-plugin-androidx-adapter to package.json
Discovered plugin "cordova-plugin-inappbrowser". Adding it to the project
Installing "cordova-plugin-inappbrowser" for android
Adding cordova-plugin-inappbrowser to package.json
Discovered plugin "de-dl9rdz-rdzwx". Adding it to the project
Command failed with exit code 1: npm view de-dl9rdz-rdzwx --json
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/de-dl9rdz-rdzwx - Not found
npm ERR! 404 
npm ERR! 404  'de-dl9rdz-rdzwx@latest' is not in this registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
{
  "error": {
    "code": "E404",
    "summary": "Not Found - GET https://registry.npmjs.org/de-dl9rdz-rdzwx - Not found",
    "detail": "\n 'de-dl9rdz-rdzwx@latest' is not in this registry.\nYou should bug the author to publish it (or use the name yourself!)\n\nNote that you can also install from a\ntarball, folder, http url, or git url."
  }
}
@dl9rdz
Copy link
Owner

dl9rdz commented Dec 7, 2022

Not sure what is the problem here. It always worked for me.
The plugin should be pulled in from github due to this:

"rdzwx-plugin": "github:dl9rdz/rdzwx-plugin"

@drid
Copy link
Author

drid commented Dec 7, 2022

I was able to build by removing "de-dl9rdz-rdzwx": {} from cordova/plugins but I am not sure this is correct.

     "plugins": {
       "cordova-plugin-androidx-adapter": {},
-      "cordova-plugin-inappbrowser": {},
-      "de-dl9rdz-rdzwx": {}
+      "cordova-plugin-inappbrowser": {}
     },

Build:

Using cordova-fetch for cordova-android@^10.1.2
Adding android project...
Creating Cordova project for the Android platform:
	Path: platforms/android
	Package: de.dl9rdz
	Name: rdzSonde
	Activity: MainActivity
	Android target: android-30
Subproject Path: CordovaLib
Subproject Path: app
Android project created with [email protected]
Discovered plugin "cordova-plugin-androidx-adapter". Adding it to the project
Installing "cordova-plugin-androidx-adapter" for android
Adding cordova-plugin-androidx-adapter to package.json
Discovered plugin "cordova-plugin-inappbrowser". Adding it to the project
Installing "cordova-plugin-inappbrowser" for android
Adding cordova-plugin-inappbrowser to package.json
cordova-plugin-androidx-adapter: Processed 7 source files in 302ms

Changing this :

-      "de-dl9rdz-rdzwx": {}
+      "rdzwx-plugin": {}

produces :

Installing "de-dl9rdz-rdzwx" for android
Error during processing of action! Attempting to revert...
Failed to install 'de-dl9rdz-rdzwx': CordovaError: Uh oh!
"/home/drid/Devel/Contribute/rdzwx-go/plugins/de-dl9rdz-rdzwx/src/android/libs/mapsforge-core-master-0.16.0.jar" not found!
    at copyFile (/home/drid/Devel/Contribute/rdzwx-go/node_modules/cordova-android/lib/pluginHandlers.js:208:36)
    at install (/home/drid/Devel/Contribute/rdzwx-go/node_modules/cordova-android/lib/pluginHandlers.js:52:13)
    at ActionStack.process (/home/drid/Devel/Contribute/rdzwx-go/node_modules/cordova-common/src/ActionStack.js:56:25)
    at PluginManager.doOperation (/home/drid/Devel/Contribute/rdzwx-go/node_modules/cordova-common/src/PluginManager.js:112:24)
    at PluginManager.addPlugin (/home/drid/Devel/Contribute/rdzwx-go/node_modules/cordova-common/src/PluginManager.js:142:21)
    at /home/drid/Devel/Contribute/rdzwx-go/node_modules/cordova-android/lib/Api.js:153:78
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
Uh oh!


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants