forked from btafel/cordova-plugin-braintree
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Plugin doesn't get installed properly with the current ionic app installation #61
Comments
I have the same error when compiling for Android on a clean android project.
Stacktrace
|
It seems to be caused by #53 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These are the steps I followed:
All worked fine.
3- I installed Braintree plugin (dpa99c fork because of issue #52
4- Installed Braintree module :
npm install --save @ionic-native/braintree
5- Rebuild iOS
6- Got the following error:
Failed to install 'cordova-plugin-braintree': Error: Cannot find module 'xcode' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object.<anonymous> (/Users/MacBookPro/desktop/projects/LaPWA/plugins/cordova-plugin-braintree/scripts/add_embedded_ios_frameworks.js:3:15) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3)
7- I shouldn't have done that but I navigated to the plugin directory and installed xcode module for manually.
8- Rebuild iOS and now build is successful !!.
9- I used this code in my app to test things out:
`import { Braintree, PaymentUIOptions, PaymentUIResult } from '@ionic-native/braintree';
10- I got the an error saying : "plugin_not_installed" however the plugin is present under platform/ios/myapp/plugins
11- now for Android ... I did a rebuild
12- I got the following error:
Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence. java.lang.IllegalStateException: compileSdkVersion is not specified.
The text was updated successfully, but these errors were encountered: