{"action":"opened","issue":{"url":"https://api.github.com/repos/golang/go/issues/12418","labels_url":"https://api.github.com/repos/golang/go/issues/12418/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/12418/comments","events_url":"https://api.github.com/repos/golang/go/issues/12418/events","html_url":"https://github.com/golang/go/issues/12418","id":104139557,"number":12418,"title":"x/mobile/cmd/gomobile: install silently fails for -target=android","user":{"login":"rakyll","id":108380,"avatar_url":"https://avatars.githubusercontent.com/u/108380?v=3","gravatar_id":"","url":"https://api.github.com/users/rakyll","html_url":"https://github.com/rakyll","followers_url":"https://api.github.com/users/rakyll/followers","following_url":"https://api.github.com/users/rakyll/following{/other_user}","gists_url":"https://api.github.com/users/rakyll/gists{/gist_id}","starred_url":"https://api.github.com/users/rakyll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rakyll/subscriptions","organizations_url":"https://api.github.com/users/rakyll/orgs","repos_url":"https://api.github.com/users/rakyll/repos","events_url":"https://api.github.com/users/rakyll/events{/privacy}","received_events_url":"https://api.github.com/users/rakyll/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-31T21:35:48Z","updated_at":"2015-08-31T21:35:48Z","closed_at":null,"body":"With freshly installed Android SDK, `gomobile install` doesn't work as expected and silently fails.\r\n\r\n1. Download Android SDK.\r\n2. Put the tools and platform tools to your PATH.\r\n3. Run the command below. It runs and exits with 0 whereas the the app is not installed on the device.\r\n```\r\n$ gomobile install  -target=android . # returns success prints out no\r\n```\r\n\r\nIf you run adb, it prints out a notice to the stdout even though it returns 0 as its exit code.\r\n\r\n```\r\nadb\r\nIt appears you do not have 'Android SDK Platform-tools' installed.\r\nUse the 'android' tool to install them:\r\n    android update sdk --no-ui --filter 'platform-tools'\r\n```\r\n\r\n/cc @crawshaw @hyangah @nigeltao "}}