{"action":"created","issue":{"url":"https://api.github.com/repos/selendroid/selendroid/issues/834","labels_url":"https://api.github.com/repos/selendroid/selendroid/issues/834/labels{/name}","comments_url":"https://api.github.com/repos/selendroid/selendroid/issues/834/comments","events_url":"https://api.github.com/repos/selendroid/selendroid/issues/834/events","html_url":"https://github.com/selendroid/selendroid/issues/834","id":63215817,"number":834,"title":"Unable to run the apk files (downloaded online example: facebook,gmail) using emulator ","user":{"login":"bradzy","id":11570313,"avatar_url":"https://avatars.githubusercontent.com/u/11570313?v=3","gravatar_id":"","url":"https://api.github.com/users/bradzy","html_url":"https://github.com/bradzy","followers_url":"https://api.github.com/users/bradzy/followers","following_url":"https://api.github.com/users/bradzy/following{/other_user}","gists_url":"https://api.github.com/users/bradzy/gists{/gist_id}","starred_url":"https://api.github.com/users/bradzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradzy/subscriptions","organizations_url":"https://api.github.com/users/bradzy/orgs","repos_url":"https://api.github.com/users/bradzy/repos","events_url":"https://api.github.com/users/bradzy/events{/privacy}","received_events_url":"https://api.github.com/users/bradzy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-20T12:04:23Z","updated_at":"2015-06-29T16:09:15Z","closed_at":"2015-06-29T16:09:15Z","body":"Hello,\r\n\r\nAs I am very new to selendroid, I want to run an .apk file in the emulator and locate the elements and below is the problem which I am facing\r\n\r\n\r\n> Able to see the installed application icon in the emulator but unable to run it. when manually clicking on the icon in the emulator its not opening and crashing.\r\n> Followed the solution provided in the link [https://github.com/selendroid/selendroid/issues/483] but its not working\r\n> Is it possible to run and locate the elements of the .apk files (downloaded from internet) through selendroid in the emulator\r\n\r\nBelow is the code which I am using\r\n\r\nCode:\r\nimport io.selendroid.SelendroidDriver;\r\nimport io.selendroid.common.SelendroidCapabilities;\r\nimport io.selendroid.common.device.DeviceTargetPlatform;\r\nimport org.openqa.selenium.WebDriver;\r\nimport org.testng.annotations.AfterTest;\r\nimport org.testng.annotations.Test;\r\n\r\npublic class Gmail {\r\n\r\n\tprivate WebDriver driver;\r\n\t@Test\r\n\tpublic void test() throws Exception{\r\n\t\tSelendroidCapabilities capa = new SelendroidCapabilities(\"com.google.android.gm:4.8 (1167183)\");\r\n\t\tdriver = new SelendroidDriver(capa); \r\n\t\t\r\n\t\tcapa.setPlatformVersion(DeviceTargetPlatform.ANDROID21);\r\n        capa.setEmulator(true);\r\n        \r\n\t\tSystem.out.println(\"Testing Gmail --\");\r\n\t\t\r\n\t\tThread.sleep(50000);\r\n\t\t\r\n\t}\r\n\t\r\n\t@AfterTest\r\n\tpublic void close() {\r\n\t\tdriver.quit();\r\n\t}\r\n\t\t\r\n}\r\n\r\n\r\nError Log:\r\n\r\nFAILED CONFIGURATION: @AfterTest close\r\njava.lang.NullPointerException\r\n\r\nFAILED: test\r\norg.openqa.selenium.SessionNotCreatedException: Error starting Selendroid session\r\n\r\n\r\nConsole:\r\nCan't connect to selendroid server, assuming it is not working\r\n\r\n\r\nThanks in advance ..\r\n\r\n\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/selendroid/selendroid/issues/comments/116745051","html_url":"https://github.com/selendroid/selendroid/issues/834#issuecomment-116745051","issue_url":"https://api.github.com/repos/selendroid/selendroid/issues/834","id":116745051,"user":{"login":"asm89","id":657357,"avatar_url":"https://avatars.githubusercontent.com/u/657357?v=3","gravatar_id":"","url":"https://api.github.com/users/asm89","html_url":"https://github.com/asm89","followers_url":"https://api.github.com/users/asm89/followers","following_url":"https://api.github.com/users/asm89/following{/other_user}","gists_url":"https://api.github.com/users/asm89/gists{/gist_id}","starred_url":"https://api.github.com/users/asm89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asm89/subscriptions","organizations_url":"https://api.github.com/users/asm89/orgs","repos_url":"https://api.github.com/users/asm89/repos","events_url":"https://api.github.com/users/asm89/events{/privacy}","received_events_url":"https://api.github.com/users/asm89/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T16:09:15Z","updated_at":"2015-06-29T16:09:15Z","body":"This is a question rather than an issue. Please send questions to the [selendroid user group](https://groups.google.com/forum/#!forum/selendroid).\r\n\r\nFor issues please provide a [concise reproducible test case](http://sscce.org/) and describe what results you are seeing and what results you expect."}}