{"action":"created","issue":{"url":"https://api.github.com/repos/couchbaselabs/nativescript-couchbase/issues/11","repository_url":"https://api.github.com/repos/couchbaselabs/nativescript-couchbase","labels_url":"https://api.github.com/repos/couchbaselabs/nativescript-couchbase/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/couchbaselabs/nativescript-couchbase/issues/11/comments","events_url":"https://api.github.com/repos/couchbaselabs/nativescript-couchbase/issues/11/events","html_url":"https://github.com/couchbaselabs/nativescript-couchbase/issues/11","id":151659692,"number":11,"title":"Plugin is not working with new tns-android version: \"2.0.0\"","user":{"login":"palpa","id":536344,"avatar_url":"https://avatars.githubusercontent.com/u/536344?v=3","gravatar_id":"","url":"https://api.github.com/users/palpa","html_url":"https://github.com/palpa","followers_url":"https://api.github.com/users/palpa/followers","following_url":"https://api.github.com/users/palpa/following{/other_user}","gists_url":"https://api.github.com/users/palpa/gists{/gist_id}","starred_url":"https://api.github.com/users/palpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palpa/subscriptions","organizations_url":"https://api.github.com/users/palpa/orgs","repos_url":"https://api.github.com/users/palpa/repos","events_url":"https://api.github.com/users/palpa/events{/privacy}","received_events_url":"https://api.github.com/users/palpa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-28T14:40:39Z","updated_at":"2016-04-28T16:06:28Z","closed_at":null,"body":"Hi, this is the output I get when I try to compile the demo project:\r\n```\r\nc:\\n\\nativescript-couchbase\\demo>tns run android\r\nExecuting before-prepare hook from c:\\n\\nativescript-couchbase\\demo\\hooks\\before-prepare\\nativescript-dev-typescript.js\r\nFound peer TypeScript 1.8.10\r\napp/views/create/create-view-model.ts(1,25): error TS2307: Cannot find module 'nativescript-couchbase'.\r\n\r\napp/views/list/list-view-model.ts(1,25): error TS2307: Cannot find module 'nativescript-couchbase'.\r\n\r\nSuccessfully prepared plugin nativescript-couchbase for android.\r\nSuccessfully prepared plugin tns-core-modules for android.\r\nProject successfully prepared\r\nWARNING: The file: C:\\n\\nativescript-couchbase\\demo\\node_modules\\nativescript-couchbase\\platforms\\android\\libs\\LICENSE.TXT is depricated, you can read more about what will be the expected plugin structure here: https://www.nativescript.org/blog/migrating-n-android-plugins-from-version-1.7-to-2.0\r\n\r\n:config phase:  createDefaultIncludeFiles\r\n        +found plugins: nativescript-couchbase\r\n\r\n    jcenter()\r\n    flatDir{\r\n        dirs 'libs'\r\n    }\r\n}\r\nFAILURE: Build failed with an exception.\r\n\r\n* Where:\r\nBuild file 'C:\\n\\nativescript-couchbase\\demo\\platforms\\android\\build.gradle' line: 274\r\n\r\n* What went wrong:\r\nA problem occurred evaluating root project 'CouchbaseProject'.\r\n> String index out of range: -1\r\n\r\n* Try:\r\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\r\n\r\nBUILD FAILED\r\n\r\nTotal time: 11.196 secs\r\nCommand c:\\n\\nativescript-couchbase\\demo\\platforms\\android\\gradlew.bat failed with exit code 1\r\n```"},"comment":{"url":"https://api.github.com/repos/couchbaselabs/nativescript-couchbase/issues/comments/215478931","html_url":"https://github.com/couchbaselabs/nativescript-couchbase/issues/11#issuecomment-215478931","issue_url":"https://api.github.com/repos/couchbaselabs/nativescript-couchbase/issues/11","id":215478931,"user":{"login":"NathanWalker","id":457187,"avatar_url":"https://avatars.githubusercontent.com/u/457187?v=3","gravatar_id":"","url":"https://api.github.com/users/NathanWalker","html_url":"https://github.com/NathanWalker","followers_url":"https://api.github.com/users/NathanWalker/followers","following_url":"https://api.github.com/users/NathanWalker/following{/other_user}","gists_url":"https://api.github.com/users/NathanWalker/gists{/gist_id}","starred_url":"https://api.github.com/users/NathanWalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NathanWalker/subscriptions","organizations_url":"https://api.github.com/users/NathanWalker/orgs","repos_url":"https://api.github.com/users/NathanWalker/repos","events_url":"https://api.github.com/users/NathanWalker/events{/privacy}","received_events_url":"https://api.github.com/users/NathanWalker/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T16:06:28Z","updated_at":"2016-04-28T16:06:28Z","body":"We should make those changes in the migration guide (https://www.nativescript.org/blog/details/migrating-n-android-plugins-from-version-1.7-to-2.0) mentioned above as well as bump these versions to 2.0.0 and republish?\r\nhttps://github.com/couchbaselabs/nativescript-couchbase/blob/master/package.json#L8-L9\r\nhttps://github.com/couchbaselabs/nativescript-couchbase/blob/master/package.json#L33\r\nI'll be upgrading an app which uses this plugin today and will see what I get as well."}}