티스토리 뷰
🐕🦵개발/🤖devops
com.android.builder.testing.api.DeviceException: No online devices found.
우리집강아지깜순이 2023. 7. 17. 15:37반응형
The error message "No online devices found" indicates that the Android Debug Bridge (ADB) is unable to detect any connected or running devices or emulators. Here are some steps you can take to resolve this issue:
- Verify USB Connection: If you are using a physical Android device, ensure that it is properly connected to your computer via a USB cable. Check if the device is recognized by your operating system.
- Enable USB Debugging: On your Android device, make sure that USB debugging is enabled. To do this, go to "Settings" > "Developer options" (or "Developer settings") > Enable "USB debugging". If you don't see the "Developer options" menu, you may need to enable it first by going to "Settings" > "About phone" > Tap on "Build number" several times until it says "You are now a developer".
- Restart ADB Server: Restart the ADB server to reset the connection. Open a terminal or command prompt and run the following commands:
For Windows:adb kill-server adb start-server
adb kill-server adb start-server
- For macOS/Linux:
- Check ADB Devices: Run the following command to check if ADB recognizes any devices or emulators:This command will display the list of connected devices. If your device is properly connected and detected, it should appear in the list.
adb devices
- Restart Emulator: If you are using an Android emulator, close the emulator and relaunch it from the AVD Manager or the command line.
- Update ADB and Drivers: Ensure that you have the latest version of ADB installed. You can update it through the Android SDK Manager. Additionally, make sure you have the appropriate USB drivers installed for your device.
- Try Different USB Port/Cable: If you are using a physical device, try connecting it to a different USB port on your computer or use a different USB cable.
- Reboot Computer: In some cases, restarting your computer can help resolve connectivity issues.
- Use Different Emulator: If you are using an emulator, try using a different emulator or create a new emulator instance using the AVD Manager.
- Check Firewall and Antivirus: Verify that your firewall or antivirus software is not blocking the ADB connection. Temporarily disable them to see if it resolves the issue.
- Try on a Different Computer: If none of the above steps work, try connecting the device or running the emulator on a different computer to determine if the issue is specific to your development environment.
By following these steps, you should be able to resolve the "No online devices found" error and successfully connect your device or emulator with ADB.
반응형
'🐕🦵개발 > 🤖devops' 카테고리의 다른 글
[jenkins] ec2 ssh 설정 (0) | 2023.03.29 |
---|---|
[MobaXterm] ec2 ssh연결 (0) | 2023.03.29 |
[TeamCity] 프로젝트 생성하기 (0) | 2022.11.28 |
[TeamCity] docker를 이용하여 TeamCity Agent 설치하기 (0) | 2022.11.28 |
[TeamCity] docker를 이용하여 TeamCity Server 설치하기 (0) | 2022.11.25 |
댓글
최근에 올라온 글