{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/6705","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/6705/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/6705/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/6705/events","html_url":"https://github.com/fastlane/fastlane/issues/6705","id":184978484,"number":6705,"title":"screengrab: device 'adb' not found","user":{"login":"gagaJay","id":3827781,"avatar_url":"https://avatars.githubusercontent.com/u/3827781?v=3","gravatar_id":"","url":"https://api.github.com/users/gagaJay","html_url":"https://github.com/gagaJay","followers_url":"https://api.github.com/users/gagaJay/followers","following_url":"https://api.github.com/users/gagaJay/following{/other_user}","gists_url":"https://api.github.com/users/gagaJay/gists{/gist_id}","starred_url":"https://api.github.com/users/gagaJay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gagaJay/subscriptions","organizations_url":"https://api.github.com/users/gagaJay/orgs","repos_url":"https://api.github.com/users/gagaJay/repos","events_url":"https://api.github.com/users/gagaJay/events{/privacy}","received_events_url":"https://api.github.com/users/gagaJay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-24T23:10:49Z","updated_at":"2016-10-28T17:32:34Z","closed_at":null,"body":"### New Issue Checklist\r\n\r\n- [ ] Updated fastlane to the latest version\r\n- [ ] I have read the [Contribution Guidelines](https://github.com/fastlane/fastlane/blob/master/CONTRIBUTING.md)\r\n\r\n### Issue Description\r\nRecently Im trying to take device screenshot with screengrab, but it gets the below error message. I looked into the screengrab rugby code (https://github.com/fastlane/fastlane/blob/master/screengrab/lib/screengrab/runner.rb#L87\r\n) , and found that it ignores all strings contains 'server is out of date',  'unauthorized', 'offline', '* daemon' or  'List of devices attached' but does not handle the string of 'adb I 20045 78051 usb_osx.cpp:259]'.\r\n\r\nIn the above case, it will see 'adb' as a device and invokes command on it. Is this should be handled some where? Thanks in advance.\r\n\r\n##### Complete output when running fastlane, including the stack trace and command used\r\n\r\n```\r\n\r\n+-----------------------------+--------------------------------------------------------------------+\r\n|                                   Summary for screengrab 0.5.5                                   |\r\n+-----------------------------+--------------------------------------------------------------------+\r\n| app_package_name            | com.phone.phonepoc                                      |\r\n| tests_package_name          | com.phone.phonepoc.test                                 |\r\n| locales                     | [\"en-US\"]                                                          |\r\n| clear_previous_screenshots  | true                                                               |\r\n| skip_open_summary           | true                                                               |\r\n| app_apk_path                | android/Phone/build/outputs/apk/Phone-sslOptional-debug.apk  |\r\n| tests_apk_path              | android/Phone/build/outputs/apk/Phone-sslOptional-debug-a... |\r\n| output_directory            | ../../Outputs/screenshots                                          |\r\n| use_tests_in_classes        | [\"nz.co.mcom.screenshots.PhoneScreenCapture\"]                      |\r\n| test_instrumentation_runner | android.support.test.runner.AndroidJUnitRunner                     |\r\n| android_home                | /Developer/android-sdk-macosx                                      |\r\n| ending_locale               | en-US                                                              |\r\n| device_type                 | phone                                                              |\r\n+-----------------------------+--------------------------------------------------------------------+\r\n\r\n[12:10:08]: Clearing phoneScreenshots within ../../Outputs/screenshots\r\n[12:10:08]: $ adb devices -l\r\n[12:10:08]: ▸ List of devices attached\r\n[12:10:08]: ▸ * daemon not running. starting it now on port 5037 *\r\n[12:10:08]: ▸ adb I 20045 78051 usb_osx.cpp:259] Found vid=0bb4 pid=0dfa serial=HT24KW300298\r\n[12:10:08]: ▸ adb I 20045 78051 usb_osx.cpp:259]\r\n[12:10:08]: ▸ * daemon started successfully *\r\n[12:10:11]: ▸ HT24KW300298           device usb:336592896X\r\n[12:10:11]: Multiple connected devices, selecting the first one\r\n[12:10:11]: To specify which connected device to use, use the -s (specific_device) config option\r\n[12:10:11]: $ adb -s adb shell echo \\$EXTERNAL_STORAGE\r\n[12:10:11]: ▸ error: device 'adb' not found\r\nerror: device 'adb' not found\r\n[12:10:11]: Exit status: 255\r\n[12:10:11]: Variable Dump:\r\n[12:10:11]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:android, :LANE_NAME=>\"android buildApp\"}\r\n[12:10:11]: Exit status: 255\r\n```\r\n\r\n### Environment\r\n\r\nPlease run `fastlane env` and copy the output below. This will help us help you :+1:\r\n\r\n[INSERT OUTPUT HERE]\r\n"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/256980798","html_url":"https://github.com/fastlane/fastlane/issues/6705#issuecomment-256980798","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/6705","id":256980798,"user":{"login":"TKBurner","id":1987108,"avatar_url":"https://avatars.githubusercontent.com/u/1987108?v=3","gravatar_id":"","url":"https://api.github.com/users/TKBurner","html_url":"https://github.com/TKBurner","followers_url":"https://api.github.com/users/TKBurner/followers","following_url":"https://api.github.com/users/TKBurner/following{/other_user}","gists_url":"https://api.github.com/users/TKBurner/gists{/gist_id}","starred_url":"https://api.github.com/users/TKBurner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TKBurner/subscriptions","organizations_url":"https://api.github.com/users/TKBurner/orgs","repos_url":"https://api.github.com/users/TKBurner/repos","events_url":"https://api.github.com/users/TKBurner/events{/privacy}","received_events_url":"https://api.github.com/users/TKBurner/received_events","type":"User","site_admin":false},"created_at":"2016-10-28T17:32:34Z","updated_at":"2016-10-28T17:32:34Z","body":"Hi @gagaJay Thanks for reaching out. Can you run fastlane env and attach the output? Thanks. Are you still running into this issue? What happens if you don't set device_type?"}}
{"actor":{"display_login":"TKBurner"}}