Taracque / cordova-plugin-braintree

:credit_card: A Cordova plugin for the Braintree mobile payment processing SDK.
MIT License
27 stars 42 forks source link

Android Build Failed but IOS is working #69

Closed sumbria closed 5 years ago

sumbria commented 5 years ago

On running following command:

ionic cordova build android

Build Failed:

no dir  IZE/Plugins/cordova-plugin-braintree
Failed to install 'cordova-plugin-braintree': TypeError: Cannot read property 'length' of undefined
    at module.exports (/Applications/Projects/ionic/testApp/plugins/cordova-plugin-braintree/hooks/add_embedded_ios_frameworks.js:111:31)
    at runScriptViaModuleLoader (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:181:32)
    at runScript (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:157:16)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:125:20
    at process.internalTickCallback (internal/process/next_tick.js:77:7)
Cannot read property 'length' of undefined

Works perfectly fine for IOS.