cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikhil Khandelwal (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-9270) Plugman fails reading the sdk.dir value
Date Thu, 14 Jan 2016 18:08:40 GMT

     [ https://issues.apache.org/jira/browse/CB-9270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nikhil Khandelwal updated CB-9270:
----------------------------------
    Component/s:     (was: Plugman)
                     (was: Android)
                 CordovaLib

> Plugman fails reading the sdk.dir value
> ---------------------------------------
>
>                 Key: CB-9270
>                 URL: https://issues.apache.org/jira/browse/CB-9270
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>         Environment: Windows 10/Cordova 5.1.1/Android SDK 19
>            Reporter: Arcadio Garcia
>
> When trying to install the Cordova-admob-pro plugin, I experience this error:
> C:\Users\Arcadio\Documents\GitHub\PhoneKeyboard\phone\cordova\keystroke\Keystroke>cordova
plugin add cordova-plugin-admobpro
> Fetching plugin "cordova-plugin-admobpro" via npm
> npm http GET https://registry.npmjs.org/cordova-plugin-admobpro
> npm http 304 https://registry.npmjs.org/cordova-plugin-admobpro
> Installing "cordova-plugin-admobpro" for android
> Error during processing of action! Attempting to revert...
> Failed to install 'cordova-plugin-admobpro':TypeError: Uh oh!
> Arguments to path.resolve must be strings
>     at Object.exports.resolve (path.js:116:15)
>     at Object.module.exports.framework.install (C:\Users\Arcadio\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\platforms\android.js:139:35)
>     at installWrapper (C:\Users\Arcadio\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\platforms\platforms.js:77:32)
>     at Object.ActionStack.process (C:\Users\Arcadio\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\util\action-stack.js:68:25)
>     at handleInstall (C:\Users\Arcadio\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:550:20)
>     at C:\Users\Arcadio\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:342:28
>     at _fulfilled (C:\Users\Arcadio\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:787:54)
>     at self.promiseDispatch.done (C:\Users\Arcadio\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:816:30)
>     at Promise.promise.promiseDispatch (C:\Users\Arcadio\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:749:13)
>     at C:\Users\Arcadio\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:509:49
> TypeError: Uh oh!
> Arguments to path.resolve must be strings
>     at Object.exports.resolve (path.js:116:15)
>     at Object.module.exports.framework.install (C:\Users\Arcadio\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\platforms\android.js:139:35)
>     at installWrapper (C:\Users\Arcadio\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\platforms\platforms.js:77:32)
>     at Object.ActionStack.process (C:\Users\Arcadio\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\util\action-stack.js:68:25)
>     at handleInstall (C:\Users\Arcadio\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:550:20)
>     at C:\Users\Arcadio\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:342:28
>     at _fulfilled (C:\Users\Arcadio\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:787:54)
>     at self.promiseDispatch.done (C:\Users\Arcadio\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:816:30)
>     at Promise.promise.promiseDispatch (C:\Users\Arcadio\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:749:13)
>     at C:\Users\Arcadio\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:509:49
> I seems that the file platforms\android\local.properties does not contain the value sdk.dir,
so when the code in android.js tries to resolve the path it fails (it is undefined). I'm not
sure when should that value be set, but it is obviously missing, the only content of the file
is:
> # This file is automatically generated.
> # Do not modify this file -- YOUR CHANGES WILL BE ERASED!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message