-
-
Notifications
You must be signed in to change notification settings - Fork 536
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
cordova android build error - The "path" argument must be of type string #756
Comments
I just tried with on my mac:
Sounds like an issue with cordova. The bug is in the function that install source files to the appropriate location I just checked: https://github.com/apache/cordova-android/blob/master/bin/templates/cordova/lib/pluginHandlers.js It seems a recent PR was made to solve the issue: Cordova-android 7.1.2 has been recently released: Worth giving it a try!
|
Thanks. |
Hi,, I've same issue here. |
Hi @surya-alive, it seems like you have to use |
@j3k0 Thanks for your comment.. it's work on |
Note: the fix is in |
I recommend using cordova-android@nightly until we publish a patch release.
Patch release is proposed in:
apache/cordova-android#555
Keep in mind that nightly or master has sone possibly breaking changes for
the next major release.
…On Wed, Nov 14, 2018, 12:30 PM Jean-Christophe Hoelt < ***@***.***> wrote:
*Note:* the fix is in cordova-android master branch.
https://github.com/apache/cordova-android
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#756 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABfNUMXXEM6BN5mqZWxGp_aBuqx6i3FAks5uvFMpgaJpZM4YX2Up>
.
|
in my case the issue resolved when I remove & then add platform android looks like for every cordova update this step is mandatory |
I had a similar experience, Cordova does not seem to do npm-style package updates. Not sure if someone may have fixed it in master or not. |
|
That would mean you're using an old version of cordova-android. The issue was definitely fixed 2 years ago. What version of cordova-android and the plugin are you using? You can paste the output of |
system info
OSX high Sierra 10.13.6
Cordova 8.1.2
npm 6.4.1
cordova-android 7.1.2
plugin version : 7.1.3, 7.2.4
When I add android platform in cordova, I got this error.
I found somtimes it occurs from 'path.resolve()'.
please help to fix it...
//---
Failed to install 'cc.fovea.cordova.purchase': TypeError [ERR_INVALID_ARG_TYPE]: Uh oh!
The "path" argument must be of type string. Received type undefined
at assertPath (path.js:39:11)
at Object.resolve (path.js:1088:7)
at copyNewFile (/Users/urbanist/Desktop/web/cordova/trcng_new/platforms/android/cordova/lib/pluginHandlers.js:258:28)
at install (/Users/urbanist/Desktop/web/cordova/trcng_new/platforms/android/cordova/lib/pluginHandlers.js:43:17)
at ActionStack.process (/Users/urbanist/Desktop/web/cordova/trcng_new/platforms/android/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
at PluginManager.doOperation (/Users/urbanist/Desktop/web/cordova/trcng_new/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:114:20)
at PluginManager.addPlugin (/Users/urbanist/Desktop/web/cordova/trcng_new/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:144:17)
at /Users/urbanist/Desktop/web/cordova/trcng_new/platforms/android/cordova/Api.js:247:74
at _fulfilled (/Users/urbanist/Desktop/web/cordova/trcng_new/platforms/android/cordova/node_modules/q/q.js:834:54)
at /Users/urbanist/Desktop/web/cordova/trcng_new/platforms/android/cordova/node_modules/q/q.js:863:30
The text was updated successfully, but these errors were encountered: