{"id":411,"date":"2014-01-25T20:38:14","date_gmt":"2014-01-25T15:08:14","guid":{"rendered":"http:\/\/itechgenie.com\/myblog\/?p=411"},"modified":"2015-01-30T09:18:03","modified_gmt":"2015-01-30T03:48:03","slug":"android-device-showing-offline-with-usb-debugging","status":"publish","type":"post","link":"https:\/\/itechgenie.com\/myblog\/2014\/01\/android-device-showing-offline-with-usb-debugging\/","title":{"rendered":"Android device showing offline with USB debugging"},"content":{"rendered":"<p>When I tried to run Android application in my mobile from Android Studio, I stuck with the error stating the application my Device was Offline.<\/p>\n<p>When I run the command <code>adb devices<\/code> the error as follows<\/p>\n<p><code>List of devices attached<br \/>\n00b445g34******        offline<\/code><\/p>\n<p>To Enable the USB debugging option in Android device<\/p>\n<p>1. Go to Settings, and select Applications > Development<br \/>\n2. Enable USB debugging<br \/>\n3. For Devices with Android KitKat and go to Settings > About devices > Tap 7 times on &#8220;Build Number&#8221;<br \/>\n4. Once Developer Option is enabled in the Settings, Enable USB debugging<br \/>\n5. Update the Android SDK Tools in <a href=\"https:\/\/developer.android.com\/tools\/device.html\" title=\"Android SDK Manager\" target=\"_blank\">Android SDK Manager<\/a><br \/>\n6. Traverse to <android_fresh_updated_sdk>\\android-sdk\\platform-tools and run <code>adb devices<\/code><br \/>\n7. If still the problem exists restart the ADB server <\/p>\n<p><code>adb kill-server<br \/>\nset ADB_TRACE=all<br \/>\nadb nodaemon server<br \/>\nadb devices<\/code><\/p>\n<p>8. The ADB_TRACE will help you trace and resolving the issues like permission and others.<br \/>\n9. If still the problem exists kill the adb process <code>killall adb<\/code> in linuxoids and <code>taskkill \/IM adb.exe<\/code><br \/>\n10. Disconnect your mobile, Developer option > Revoke USB debugging authorizations (KitKat and above)<br \/>\n11. Restart your mobile and connect to PC. You will be asked to verify the RSA, do the same and add the device<br \/>\n12. Now try running <code>adb devices<\/code>, boom the device is online <\/p>\n<p><code>List of devices attached<br \/>\n00b445g34******        device<\/code><\/p>\n<p>The same scenario happened when I tried to run debug my AIR application in Flash developer, follow all the steps above in addition the next few steps too.<\/p>\n<p>1. Copy the following files from <strong><android_fresh_updated_sdk>\\android-sdk\\platform-tools<\/strong> <code>aapt.exe, adb.exe, AdbWinApi.dll, AdbWinUsbApi.dll, dx.jar<\/code> (dx.jar from lib folder)<br \/>\n2. Paste them into <strong><flex_Sdk>\\lib\\android\\bin<\/strong><br \/>\n3. Run the command <code>adb version<\/code> from the same folder in command prompt<br \/>\n4. Result should be as follows<br \/>\n<code>Android Debug Bridge version 1.0.31<\/code><br \/>\n5. Version should be greater or equal to 1.0.31<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I tried to run Android application in my mobile from Android Studio, I stuck with the error stating the application my Device was Offline. When I run the command adb devices the error as follows List of devices attached 00b445g34****** offline To Enable the USB debugging option in Android device 1. Go to Settings, &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/itechgenie.com\/myblog\/2014\/01\/android-device-showing-offline-with-usb-debugging\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Android device showing offline with USB debugging&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[19,5,63],"tags":[61,17,18,86,62,60,27,28,34,64],"class_list":["post-411","post","type-post","status-publish","format-standard","hentry","category-android","category-how-to","category-mobile-application","tag-adb","tag-adobe-air","tag-adobe-flex","tag-android","tag-apk","tag-debugging","tag-errors","tag-exceptions","tag-hacking","tag-mobile"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2HHtz-6D","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/itechgenie.com\/myblog\/wp-json\/wp\/v2\/posts\/411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itechgenie.com\/myblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itechgenie.com\/myblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itechgenie.com\/myblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itechgenie.com\/myblog\/wp-json\/wp\/v2\/comments?post=411"}],"version-history":[{"count":6,"href":"https:\/\/itechgenie.com\/myblog\/wp-json\/wp\/v2\/posts\/411\/revisions"}],"predecessor-version":[{"id":417,"href":"https:\/\/itechgenie.com\/myblog\/wp-json\/wp\/v2\/posts\/411\/revisions\/417"}],"wp:attachment":[{"href":"https:\/\/itechgenie.com\/myblog\/wp-json\/wp\/v2\/media?parent=411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itechgenie.com\/myblog\/wp-json\/wp\/v2\/categories?post=411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itechgenie.com\/myblog\/wp-json\/wp\/v2\/tags?post=411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}