You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/11/14 12:47:29 UTC
[GitHub] uerceg opened a new issue #554: ERR_INVALID_ARG_TYPE after
android@7.1.2 update
uerceg opened a new issue #554: ERR_INVALID_ARG_TYPE after android@7.1.2 update
URL: https://github.com/apache/cordova-android/issues/554
Hey guys.
We have our plugin built for Cordova and the version on Github `master` branch is compatible with pre `android@7.0.0` platform version. For `android@7.0.0` and above we made separate branch called `cordova-8` from which people can add our plugin in case they are using those platform version(s).
Together with `android@7.1.1` platform version, everything worked fine, but as of `android@7.1.2`, plugin can't be added on Android platform. I was trying to go through all the PRs you merged as part of `android@7.1.2` update, but no luck in finding what is actually causing the error.
Error which happens once plugin is being added:
```
No scripts found for hook "before_plugin_add".
Calling plugman.fetch on plugin "https://github.com/adjust/cordova_sdk.git#cordova-8"
saving
Running command: npm install https://github.com/adjust/cordova_sdk.git#cordova-8 --production --save
Command finished with error code 0: npm install,https://github.com/adjust/cordova_sdk.git#cordova-8,--production,--save
Copying plugin "/Users/uerceg/Projects/Cordova/AdjustCordovaEight/node_modules/com.adjust.sdk" => "/Users/uerceg/Projects/Cordova/AdjustCordovaEight/plugins/com.adjust.sdk"
Calling plugman.install on plugin "/Users/uerceg/Projects/Cordova/AdjustCordovaEight/plugins/com.adjust.sdk" for platform "android
Installing "com.adjust.sdk" for android
Running command: /Users/uerceg/Projects/Cordova/AdjustCordovaEight/platforms/android/cordova/version
Command finished with error code 0: /Users/uerceg/Projects/Cordova/AdjustCordovaEight/platforms/android/cordova/version
Finding scripts for "before_plugin_install" hook from plugin com.adjust.sdk on android platform only.
No scripts found for hook "before_plugin_install".
Install start for "com.adjust.sdk" on android.
PlatformApi successfully found for platform android
Android Studio project detected
Beginning processing of action stack for android project...
Error during processing of action! Attempting to revert...
Failed to install 'com.adjust.sdk': TypeError [ERR_INVALID_ARG_TYPE]: Uh oh!
The "path" argument must be of type string
at assertPath (path.js:28:11)
at Object.resolve (path.js:1179:7)
at copyNewFile (/Users/uerceg/Projects/Cordova/AdjustCordovaEight/platforms/android/cordova/lib/pluginHandlers.js:258:28)
at install (/Users/uerceg/Projects/Cordova/AdjustCordovaEight/platforms/android/cordova/lib/pluginHandlers.js:43:17)
at ActionStack.process (/Users/uerceg/Projects/Cordova/AdjustCordovaEight/platforms/android/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
at PluginManager.doOperation (/Users/uerceg/Projects/Cordova/AdjustCordovaEight/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:114:20)
at PluginManager.addPlugin (/Users/uerceg/Projects/Cordova/AdjustCordovaEight/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:144:17)
at /Users/uerceg/Projects/Cordova/AdjustCordovaEight/platforms/android/cordova/Api.js:247:74
at _fulfilled (/Users/uerceg/Projects/Cordova/AdjustCordovaEight/platforms/android/cordova/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/Users/uerceg/Projects/Cordova/AdjustCordovaEight/platforms/android/cordova/node_modules/q/q.js:863:30)
Uh oh!
The "path" argument must be of type string
TypeError [ERR_INVALID_ARG_TYPE]: Uh oh!
The "path" argument must be of type string
at assertPath (path.js:28:11)
at Object.resolve (path.js:1179:7)
at copyNewFile (/Users/uerceg/Projects/Cordova/AdjustCordovaEight/platforms/android/cordova/lib/pluginHandlers.js:258:28)
at install (/Users/uerceg/Projects/Cordova/AdjustCordovaEight/platforms/android/cordova/lib/pluginHandlers.js:43:17)
at ActionStack.process (/Users/uerceg/Projects/Cordova/AdjustCordovaEight/platforms/android/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
at PluginManager.doOperation (/Users/uerceg/Projects/Cordova/AdjustCordovaEight/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:114:20)
at PluginManager.addPlugin (/Users/uerceg/Projects/Cordova/AdjustCordovaEight/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:144:17)
at /Users/uerceg/Projects/Cordova/AdjustCordovaEight/platforms/android/cordova/Api.js:247:74
at _fulfilled (/Users/uerceg/Projects/Cordova/AdjustCordovaEight/platforms/android/cordova/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/Users/uerceg/Projects/Cordova/AdjustCordovaEight/platforms/android/cordova/node_modules/q/q.js:863:30)
```
Steps to reproduce:
1. Create empty new Cordova app.
2. `cordova platform add android@7.1.2`
3. `cordova plugin add https://github.com/adjust/cordova_sdk.git\#cordova-8`
Testing environment:
- Mac OS X Mojave 10.14
- Cordova version: `8.1.2 (cordova-lib@8.1.1)`
Plugin code is publicly available on Github.
In case you need any additional info, please feel free to ping.
Looking forward to hear from you soon.
Cheers
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org