{"action":"closed","issue":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/490","repository_url":"https://api.github.com/repos/ParsePlatform/parse-server","labels_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/490/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/490/comments","events_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/490/events","html_url":"https://github.com/ParsePlatform/parse-server/issues/490","id":134735864,"number":490,"title":"Have a problem using Local Datastore in Android after parse server migration","user":{"login":"slickker","id":10632456,"avatar_url":"https://avatars.githubusercontent.com/u/10632456?v=3","gravatar_id":"","url":"https://api.github.com/users/slickker","html_url":"https://github.com/slickker","followers_url":"https://api.github.com/users/slickker/followers","following_url":"https://api.github.com/users/slickker/following{/other_user}","gists_url":"https://api.github.com/users/slickker/gists{/gist_id}","starred_url":"https://api.github.com/users/slickker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slickker/subscriptions","organizations_url":"https://api.github.com/users/slickker/orgs","repos_url":"https://api.github.com/users/slickker/repos","events_url":"https://api.github.com/users/slickker/events{/privacy}","received_events_url":"https://api.github.com/users/slickker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"grantland","id":277030,"avatar_url":"https://avatars.githubusercontent.com/u/277030?v=3","gravatar_id":"","url":"https://api.github.com/users/grantland","html_url":"https://github.com/grantland","followers_url":"https://api.github.com/users/grantland/followers","following_url":"https://api.github.com/users/grantland/following{/other_user}","gists_url":"https://api.github.com/users/grantland/gists{/gist_id}","starred_url":"https://api.github.com/users/grantland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grantland/subscriptions","organizations_url":"https://api.github.com/users/grantland/orgs","repos_url":"https://api.github.com/users/grantland/repos","events_url":"https://api.github.com/users/grantland/events{/privacy}","received_events_url":"https://api.github.com/users/grantland/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-02-19T00:12:48Z","updated_at":"2016-02-23T21:11:49Z","closed_at":"2016-02-23T21:11:49Z","body":"I request this issue to parse.com/help.\r\nThey said you might report this issue to here.\r\n\r\nI try migration to my local parse server.\r\nI succeeded development local parse server.\r\nAnd my android application connect to this server successfully.\r\n\r\nBut to use Local Datastore has problem.\r\nI'm using local datastore.\r\nThis is my code.\r\n\r\n- MyApplication.java\r\n        Parse.enableLocalDatastore(this);\r\n\r\n- userProfileDao.java\r\n        try {\r\n            ParseQuery<ParseObject> query = ParseQuery.getQuery(PARSE_OBJECT);\r\n            query.fromLocalDatastore();\r\n            mParseObject = query.getFirst();\r\n        } catch (ParseException e) {\r\n            mParseObject = new ParseObject(PARSE_OBJECT);\r\n        }\r\n\r\nIn userProfileDao.java,\r\nquery.fromLocalDatastore(); <- ERROR.... Caused by: java.lang.IllegalStateException: Method requires Local Datastore. Please refer to `Parse#enableLocalDatastore(Context)`.\r\n\r\nBefore migration, this is no problem.\r\nCurrently, I used Parse SDK version 1.13 and Parse server version 2.1.\r\nPlease to solve this problem.\r\n\r\nThanks."}}