cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Miquel (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-9270) Plugman fails reading the sdk.dir value
Date Fri, 28 Oct 2016 16:50:58 GMT

    [ https://issues.apache.org/jira/browse/CB-9270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15615935#comment-15615935
] 

Miquel commented on CB-9270:
----------------------------

This is not happening when you install {{cordova-admob}} plugin (from [http://github.com/appfeel/admob-google-cordova])
but it happens when removing it. Here the verbose log:

{code}
$ cordova plugin rm cordova-admob --verbose
Executing "before_plugin_rm"  hook for all plugins.
Calling plugman.uninstall on plugin "cordova-admob" for platform "android"
Running command: /Volumes/DATA/apps/testApp/platforms/android/cordova/version 
Command finished with error code 0: /Volumes/DATA/apps/testApp/platforms/android/cordova/version

Executing "before_plugin_uninstall"  hook for "cordova-admob" on android.
Uninstalling cordova-admob from android
Updating build files since android plugin contained <framework>
Updating build files since android plugin contained <framework>
Calling plugman.uninstall on plugin "cordova-admob" for platform "ios"
Running command: /Volumes/DATA/apps/testApp/platforms/ios/cordova/version 
Command finished with error code 0: /Volumes/DATA/apps/testApp/platforms/ios/cordova/version

Uninstalling 2 dependent plugins.
Executing "before_plugin_uninstall"  hook for "cordova-connectivity-monitor" on ios.
Uninstalling cordova-connectivity-monitor from ios
Beginning processing of action stack for ios project...
Action stack processing complete.
Executing "before_plugin_uninstall"  hook for "cordova-libgoogleadmobads" on ios.
Uninstalling cordova-libgoogleadmobads from ios
Beginning processing of action stack for ios project...
Error during processing of action! Attempting to revert...
Error: TypeError: Uh oh!
Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.dirname (path.js:1324:5)
    at searchPathForFile (/Volumes/DATA/apps/testApp/platforms/ios/cordova/node_modules/xcode/lib/pbxProject.js:1517:24)
    at pbxProject.removeFromFrameworkSearchPaths (/Volumes/DATA/apps/testApp/platforms/ios/cordova/node_modules/xcode/lib/pbxProject.js:1035:20)
    at pbxProject.removeFramework (/Volumes/DATA/apps/testApp/platforms/ios/cordova/node_modules/xcode/lib/pbxProject.js:307:14)
    at uninstall (/Volumes/DATA/apps/testApp/platforms/ios/cordova/lib/plugman/pluginHandlers.js:112:41)
    at Object.process (/Volumes/DATA/apps/testApp/platforms/ios/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
    at Plugman.removePlugin (/Volumes/DATA/apps/testApp/platforms/ios/cordova/lib/plugman/Plugman.js:125:20)
    at Api.removePlugin (/Volumes/DATA/apps/testApp/platforms/ios/cordova/Api.js:220:40)
    at handleUninstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/uninstall.js:333:6)
{code}

> 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