Eclipse의 Android 장치 선택기에 Android 장치가 표시되지 않는 이유는 무엇입니까?
Eclipse 용 Android 플러그인을 사용하고 있으며 Android Device Chooser를 통해 실제 장치를 사용하여 프로그램을 실행하려고하면 내 휴대폰이 장치로 나열되지 않습니다. Eclipse, 모든 Android 패키지 및 USB 드라이버를 업데이트했지만 여전히 표시되지 않습니다. 내 전화는 Eclipse 프로젝트에 나열된 대상 버전이기도 한 Android 2.1을 실행하고 있습니다.
또한 스크린 샷과 같이 장치가 알 수없는 대상으로 표시되고 일련 번호가 물음표로 표시됩니다.
Motorola Droid에서 동일한 문제가 발생했습니다. 3 개의 장치가 있었는데 ADB에서 1 개만 감지되었습니다. 작동 한 것은 장치 관리자에서 "android adb composite interface"로 표시되고 작동하지 않는 2 개는 "android adb interface"로 표시되었습니다. Windows 7에서는 다음을 수행했습니다.
- 컴퓨터를 마우스 오른쪽 버튼으로 클릭 한 다음 관리
- 목록 상단에서 Android 휴대 전화를 펼치세요.
- Android ADB 인터페이스를 마우스 오른쪽 버튼으로 클릭 한 다음 드라이버 소프트웨어 업데이트
- 내 컴퓨터에서 드라이버 소프트웨어 찾아보기
- 내 컴퓨터의 장치 드라이버 목록에서 선택하겠습니다.
- USB 복합 장치를 선택하고 다음
USB 복합 장치가 표시되지 않으면 5 단계에서 Android sdk 디렉토리의 usb_driver 폴더로 이동 한 다음 5 단계와 6 단계를 다시 시도하십시오.
참고 : Android가 # 2에 설명 된대로이 목록의 맨 위에 표시되지 않거나 드라이버가없는 장치 ADB를 찾은 경우 아마도 장치 드라이버를 설치해야 할 것입니다. 제 경우에는 (HTC Glacier) 오른쪽에있었습니다. 내 폰에.
명령 줄에서 시도 했습니까 (리눅스 가정)
adb devices
물음표가 많으면
List of devices attached
?????????????? device
장치의 공급 업체 ID가 무엇인지 확인하십시오.
lsusb
> Bus 003 Device 006: ID 04e8:689e Samsung Electronics Co., Ltd
이 경우 공급 업체 ID는 '04e8'입니다.
USB 목록에 장치를 추가해야합니다.
sudo vim /etc/udev/rules.d/51-android.rules
이 줄을 입력하십시오 (자신의 공급 업체 ID 사용).
SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"
또는 mcordaro 및 Yekmer Simsek이 문서를 참조하여 지적한 다음 구문을 시도하십시오.
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="plugdev"
저장하고
sudo chmod a+r /etc/udev/rules.d/51-android.rules
sudo service udev reload
이제 작동합니다.
Android 개발자 웹 사이트 에 대한 이 링크 는 지원되는 모든 플랫폼에서이 문제를 해결하는 열쇠를 가지고 있습니다. 개발 용 장치 설정 단계를 따릅니다 .
참고 :이 페이지는 Android 개발팀에서 운영하므로 새 adb 버전이 출시 되면 절차가 변경되면 업데이트해야합니다 .
일부 사람들이 기억하지 못하는 것이 있습니다. 저와 마찬가지로 일반 사용자 자격 증명으로 실행 한 후 수퍼 유저 자격 증명으로 adb를 실행하려고하면 성공을 기대하지 마십시오. 첫째, 형편없는 권한으로 실행 된 adb를 죽이고 sudo로 다시 시작해야합니다.
marek@deb42:~$ sudo adb kill-server
marek@deb42:~$ sudo adb devices
우리가 다른 문제가있는 것처럼 들리지만 나는 그것을 알아 냈다. 그러나 이것이 도움이 될 경우를 대비하여.
먼저 매니페스트는 Application 노드에 android : debuggable = "true"속성을 가져야합니다. 당신은 아마도 이것을 가지고 있고 그것이 실제로 장치가 나타나는지 여부에 기여하는지 모르겠습니다.
어쨌든 내가 잘못하고 있었던 것은 대상 탭 (에뮬레이터 장치 설정이 나열되어 있음)에서 내 구성 (Eclipse에서)을 실행하거나 디버그 할 때 자동 라디오 버튼을 선택했습니다. 수동으로 뒤집 으면 실행을 누를 때 다른 대화 상자가 표시되고 해당 대화 상자에서 맨 위에 내 장치가 표시됩니다.
마지막으로 (그리고 나는 이것을 Droid X에서만 볼 수 있습니다) PC 모드에있을 때 장치는 마치 컴퓨터에 연결된 것처럼 작동하지 않습니다. 대용량 저장 모드에있을 때 모든 것이 예상대로 작동하지만 SD 카드가 비활성화되므로 앱이 SD 카드에 쓰기를하면 실행 시점에서 실패합니다. Captivate (나의 다른 테스트 장치)는 동일한 문제를 겪지 않습니다.
장치가 PTP 장치 (카메라)로 연결되어 있는지 확인하십시오. 알림 표시 줄-> USB 연결. 기기가 MTP (공통 데이터 저장소)로 연결된 경우 AndroidStudio는 디버그 가능한 기기로 인식하지 못합니다. 적어도 그것은 나와 내 Nexus에서 작동합니다.
나는 같은 문제가 있었고 위에 게시 된 많은 솔루션을 시도한 후 마침내 케이블 변경을 시도했으며 즉시 작동했습니다.
On Window Machine Just Install adbdriver. It will autometicall get competible drivers for the connected Android Device
.
I hope this will help everyone who is facing this issue.
Hope this solution will fix your mood this time!
Issue: My Android Device isn't recognized by the Eclipse ADT, why?
Cause: Device Driver was missing as it seemed at the end when I fixed it!
How to Fix:
- Search through web (using Google) "LG < Your_Phone_Model Number > Drivers Download".(Ex.:- Go to About phone in your settings list > Model Number, for me it's LG-E400f)
- Mostly the first few links are related to the required Device Driver download page.(Ex.:- for me I got the following link and for each device driver LG or most of the other vendors/manufactures have that kind of a Manuals and Drivers Page) Visit that page mentiioning about software update and drivers downloads.
- Scroll down to the section of "Manuals and Software Update" and doing just the Step 1 was enough for me, which is "Install the USB DRIVERS "
- Download it(for Mac or Windows) > Install It > Check Your Eclipse ADT > and it should be visible under Devices tab by now
Cheers!!!
Hope this helps to someone else to clearly get to the solution!
If you are using Eclipse, then see if Eclipse inadvertently converted your project to be a native java project. Do this by right clicking on your project name in eclipse and selecting the option "Convert to Android Project"
Another thing you can try is looking for the USB drivers from the manufacturers website. Windows Update does not always include these drivers. My Acer Iconia a700 tablet would not show up in Eclipse until I downloaded and installed the drivers from Acer's website.
I have the same problem with xiaomi phone. Eclipse can detect all my other devices (including samsung and huawei).
Tried all the above and finally found the solution: just key in " ##717717## " and call and it will work!
Unfortunately, the above solutions didn't work on my Samsung device Ace 2. But Installing Samsung Kies solve the problem
Install pdaNet(http://pdanet.co/a/) In between the installation if you get this message "Skip USB or something" in a pop up, close the pop up, unplug device then plug device, continue installation. Now eclipse should list your device :)
Sometimes adb stops running on my mac, a simple:
adb kill-server
adb start-server
and restarting adb debug on the device will reconnect it.
I updated my Motorola drivers for my Droid 3 at some point, and then ADB could not find the device. After reading this question and top answer and still didn't work, I tried removing the driver first. Then unplugging the device, then replugging it in, Windows found and loaded the correct drivers. Joy! Hope this help someone else.
A ridiculous thing worked for me, I ran the app then when the device window opened up I swapped which port the cord to the device was plugged into on my mac and bam found the device! Good luck this stuff can be tricky
디버그 모드가 켜져 있는지 확인하고 알 수없는 위치에서의 설치를 허용하는지 확인합니다. 문제가 계속되면 장치의 플러그를 뽑고 다시 부팅 한 다음 장치를 다시 연결해야합니다. 또 다른 일반적인 문제는 USB 드라이버가 설치되어 있지 않은 것입니다.이 문제를 해결하려면 SDK Manager로 이동하고 Extras에서 USB 드라이버를 다운로드 / 업데이트하십시오.
Android 매니페스트 파일의 다음 줄 때문에 장치가 표시되지 않았습니다 .--
<uses-sdk android:minSdkVersion="18"
android:targetSdkVersion="18"/>
나는 그것을 ---로 바꿨다.
<uses-sdk android:minSdkVersion="8"
android:targetSdkVersion="19"/>
이제 작동했습니다.
udev
Yekmer Simsek에 따라 디렉토리에 파일을 추가 한 후 /var/log/syslog
장치를 다시 연결하면 로그에 다음이 표시됩니다.
Jul 3 16:18:10 jupiter kernel: [16866.411654] usb 2-1.2: USB disconnect, device number 7
Jul 3 16:18:15 jupiter kernel: [16871.221603] usb 2-1.2: new high-speed USB device number 8 using ehci-pci
Jul 3 16:18:15 jupiter kernel: [16871.315693] usb 2-1.2: New USB device found, idVendor=18d1, idProduct=d002
Jul 3 16:18:15 jupiter kernel: [16871.315704] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 3 16:18:15 jupiter kernel: [16871.315710] usb 2-1.2: Product: Nexus 5
Jul 3 16:18:15 jupiter kernel: [16871.315715] usb 2-1.2: Manufacturer: LGE
Jul 3 16:18:15 jupiter kernel: [16871.315719] usb 2-1.2: SerialNumber: 0650f8e00ae573dc
Jul 3 16:18:15 jupiter mtp-probe: checking bus 2, device 8: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2"
Jul 3 16:18:15 jupiter mtp-probe: bus: 2, device: 8 was not an MTP device
'developer tip' 카테고리의 다른 글
자바 스크립트를 사용하여 테이블 만들기 (0) | 2020.09.13 |
---|---|
Vagrant 상자를 찾을 수 없거나 원격 카탈로그에서 액세스 할 수 없습니다. 호환되지 않는 컬 버전 (0) | 2020.09.13 |
한 S3 계정에서 다른 계정으로 파일을 직접 이동 하시겠습니까? (0) | 2020.09.13 |
C ++에서 참조로 포인터를 전달하는 이유? (0) | 2020.09.13 |
Python if-else 속기 (0) | 2020.09.13 |