{"action":"created","issue":{"url":"https://api.github.com/repos/kraffslol/react-native-braintree-xplat/issues/3","repository_url":"https://api.github.com/repos/kraffslol/react-native-braintree-xplat","labels_url":"https://api.github.com/repos/kraffslol/react-native-braintree-xplat/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/kraffslol/react-native-braintree-xplat/issues/3/comments","events_url":"https://api.github.com/repos/kraffslol/react-native-braintree-xplat/issues/3/events","html_url":"https://github.com/kraffslol/react-native-braintree-xplat/issues/3","id":166915860,"number":3,"title":"Won't compile on Android","user":{"login":"AdamBrodzinski","id":1445367,"avatar_url":"https://avatars.githubusercontent.com/u/1445367?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamBrodzinski","html_url":"https://github.com/AdamBrodzinski","followers_url":"https://api.github.com/users/AdamBrodzinski/followers","following_url":"https://api.github.com/users/AdamBrodzinski/following{/other_user}","gists_url":"https://api.github.com/users/AdamBrodzinski/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamBrodzinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamBrodzinski/subscriptions","organizations_url":"https://api.github.com/users/AdamBrodzinski/orgs","repos_url":"https://api.github.com/users/AdamBrodzinski/repos","events_url":"https://api.github.com/users/AdamBrodzinski/events{/privacy}","received_events_url":"https://api.github.com/users/AdamBrodzinski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2016-07-21T20:56:28Z","updated_at":"2016-11-03T17:49:08Z","closed_at":"2016-08-21T13:07:50Z","body":"Hello, i'm able to run this on iOS but am having issues with Android. I ran `rnpm link` and that changed some files on Android but i'm not sure what these errors are getting at. Would you have any insight on what I should try next?\n\n**Versions**\n- react-native 0.30.0\n- react 15.2\n\n**Expected:**\nAndroid to compile with `react-native run-android`\n\n**Actual:**\nError message:\n\n```\n:app:generateDebugSources UP-TO-DATE\n:app:processDebugJavaRes UP-TO-DATE\n:app:compileDebugJavaWithJavac\n/Users/adam/Projects/acme/myapp-mobile/android/app/src/main/java/com/myapp/MainActivity.java:38: error: method does not override or implement a method from a supertype\n    @Override\n    ^\n/Users/adam/Projects/acme/myapp-mobile/android/app/src/main/java/com/myapp/MainActivity.java:43: error: constructor BraintreePackage in class BraintreePackage cannot be applied to given types;\n            new BraintreePackage(),\n            ^\n  required: Context\n  found: no arguments\n  reason: actual and formal argument lists differ in length\n/Users/adam/Projects/acme/myapp-mobile/android/app/src/main/java/com/myapp/MainActivity.java:45: error: constructor BraintreePackage in class BraintreePackage cannot be applied to given types;\n            new BraintreePackage()\n            ^\n  required: Context\n  found: no arguments\n  reason: actual and formal argument lists differ in length\n3 errors\n:app:compileDebugJavaWithJavac FAILED\n\nFAILURE: Build failed with an exception.\n```\n\nMy MainActivity.java file looks like:\n\n```\npackage com.myapp;\n\nimport com.facebook.react.ReactActivity;\nimport com.oblador.vectoricons.VectorIconsPackage;\nimport com.pw.droplet.braintree.BraintreePackage;\nimport com.facebook.react.ReactPackage;\nimport com.facebook.react.shell.MainReactPackage;\n\nimport java.util.Arrays;\nimport java.util.List;\n\npublic class MainActivity extends ReactActivity {\n\n    /**\n     * Returns the name of the main component registered from JavaScript.\n     * This is used to schedule rendering of the component.\n     */\n    @Override\n    protected String getMainComponentName() {\n        return \"MyApp\";\n    }\n\n    /**\n     * Returns whether dev mode should be enabled.\n     * This enables e.g. the dev menu.\n     */\n    @Override\n    protected boolean getUseDeveloperSupport() {\n        return BuildConfig.DEBUG;\n    }\n\n    /**\n     * A list of packages used by the app. If the app uses additional views\n     * or modules besides the default ones, add more packages here.\n     */\n    @Override\n    protected List<ReactPackage> getPackages() {\n        return Arrays.<ReactPackage>asList(\n            new MainReactPackage(),\n            new VectorIconsPackage(),\n            new BraintreePackage()\n        );\n    }\n}\n```\n\nI've also tried to go back to React Native `0.26` to see if that would help and it gives me less errors with:\n\n```\n:app:generateDebugSources\n:app:processDebugJavaRes UP-TO-DATE\n:app:compileDebugJavaWithJavac\n/Users/adam/Projects/acme/myapp-mobile/android/app/src/main/java/com/myapp/MainActivity.java:41: error: constructor BraintreePackage in class BraintreePackage cannot be applied to given types;\n            new BraintreePackage()\n            ^\n  required: Context\n  found: no arguments\n  reason: actual and formal argument lists differ in length\n1 error\n:app:compileDebugJavaWithJavac FAILED\n```\n\nAny help would be appreciated!!\n"},"comment":{"url":"https://api.github.com/repos/kraffslol/react-native-braintree-xplat/issues/comments/258220820","html_url":"https://github.com/kraffslol/react-native-braintree-xplat/issues/3#issuecomment-258220820","issue_url":"https://api.github.com/repos/kraffslol/react-native-braintree-xplat/issues/3","id":258220820,"user":{"login":"asciiman","id":645336,"avatar_url":"https://avatars.githubusercontent.com/u/645336?v=3","gravatar_id":"","url":"https://api.github.com/users/asciiman","html_url":"https://github.com/asciiman","followers_url":"https://api.github.com/users/asciiman/followers","following_url":"https://api.github.com/users/asciiman/following{/other_user}","gists_url":"https://api.github.com/users/asciiman/gists{/gist_id}","starred_url":"https://api.github.com/users/asciiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asciiman/subscriptions","organizations_url":"https://api.github.com/users/asciiman/orgs","repos_url":"https://api.github.com/users/asciiman/repos","events_url":"https://api.github.com/users/asciiman/events{/privacy}","received_events_url":"https://api.github.com/users/asciiman/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T17:49:08Z","updated_at":"2016-11-03T17:49:08Z","body":"```\r\n:app:compileDebugJavaWithJavac\r\n/Users/asciiman/Documents/Code/GoStudent/bt2/android/app/src/main/java/com/bt2/MainApplication.java:30: error: constructor BraintreePackage in class BraintreePackage cannot be applied to given types;\r\n          new BraintreePackage()\r\n          ^\r\n  required: Context\r\n  found: no arguments\r\n  reason: actual and formal argument lists differ in length\r\n1 error\r\n```\r\n\r\nLooks like this error is back again.  How to fix?\r\n\r\nThe readme says to add `new BraintreePackage()` but the constructor looks like `public BraintreePackage(Context activityContext) `."}}
{"actor":{"display_login":"asciiman"}}