{"action":"created","issue":{"url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/65","repository_url":"https://api.github.com/repos/andpor/react-native-sqlite-storage","labels_url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/65/comments","events_url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/65/events","html_url":"https://github.com/andpor/react-native-sqlite-storage/issues/65","id":163651148,"number":65,"title":"error: constructor SQLitePluginPackage in class SQLitePluginPackage cannot be applied to given types","user":{"login":"Moussawi7","id":5157060,"avatar_url":"https://avatars.githubusercontent.com/u/5157060?v=3","gravatar_id":"","url":"https://api.github.com/users/Moussawi7","html_url":"https://github.com/Moussawi7","followers_url":"https://api.github.com/users/Moussawi7/followers","following_url":"https://api.github.com/users/Moussawi7/following{/other_user}","gists_url":"https://api.github.com/users/Moussawi7/gists{/gist_id}","starred_url":"https://api.github.com/users/Moussawi7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Moussawi7/subscriptions","organizations_url":"https://api.github.com/users/Moussawi7/orgs","repos_url":"https://api.github.com/users/Moussawi7/repos","events_url":"https://api.github.com/users/Moussawi7/events{/privacy}","received_events_url":"https://api.github.com/users/Moussawi7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-04T10:47:24Z","updated_at":"2016-07-04T14:04:15Z","closed_at":null,"body":"Hi,\r\nWhen i try to install the plugin on a fresh **android** project, I got the following error:\r\n```\r\nMainActivity.java:40: error: constructor SQLitePluginPackage in class SQLitePluginPackage cannot be applied to given types;\r\n\t\t\tnew SQLitePluginPackage()\r\n\t\t\t^\r\n  required: Activity\r\n  found: no arguments\r\n  reason: actual and formal argument lists differ in length\r\n1 error\r\n:app:compileDebugJavaWithJavac FAILED\r\n```\r\n\r\nand this is the dependencies:\r\n    \"react\": \"15.2.0\",\r\n    \"react-native\": \"0.28.0\",\r\n    \"react-native-sqlite-storage\": \"^3.0.0\"\r\n\r\nAny Idea about the cause of the issue?\r\nThank you."},"comment":{"url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/comments/230298117","html_url":"https://github.com/andpor/react-native-sqlite-storage/issues/65#issuecomment-230298117","issue_url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/65","id":230298117,"user":{"login":"RakanNimer","id":1270909,"avatar_url":"https://avatars.githubusercontent.com/u/1270909?v=3","gravatar_id":"","url":"https://api.github.com/users/RakanNimer","html_url":"https://github.com/RakanNimer","followers_url":"https://api.github.com/users/RakanNimer/followers","following_url":"https://api.github.com/users/RakanNimer/following{/other_user}","gists_url":"https://api.github.com/users/RakanNimer/gists{/gist_id}","starred_url":"https://api.github.com/users/RakanNimer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RakanNimer/subscriptions","organizations_url":"https://api.github.com/users/RakanNimer/orgs","repos_url":"https://api.github.com/users/RakanNimer/repos","events_url":"https://api.github.com/users/RakanNimer/events{/privacy}","received_events_url":"https://api.github.com/users/RakanNimer/received_events","type":"User","site_admin":false},"created_at":"2016-07-04T14:04:14Z","updated_at":"2016-07-04T14:04:14Z","body":"Hello @andpor and @Moussawi7 !\r\n\r\nI had the same issue and it turns out there's a small thing missing in the README.md. I submitted a pull request to clear this up.\r\n\r\nIn your MainActivity.java you should pass \r\n``` this ```\r\nto the SQLitePluginPackage : \r\n```java\r\n    @Override\r\n    protected List<ReactPackage> getPackages() {\r\n        return Arrays.<ReactPackage>asList(\r\n            new MainReactPackage(),\r\n            new SQLitePluginPackage(this)\r\n        );\r\n    }\r\n```\r\n\r\nThat worked for me, hope it helps and thanks @andpor for the great library !"}}
{"actor":{"display_login":"RakanNimer"}}