How to test android apps in a real device with Android Studio?

前端 未结 10 1869
执念已碎
执念已碎 2020-12-01 10:25

I started to develop in android with Android Studio IDE, I tested my apps on the emulator and works fine, but when I tried to test the apps directl

10条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-01 11:03

    • First we have to enable the USB debugging mode. for that go to Settings -> Developer Options ->USB debugging in your phone checked it and allow it.
    • After it open android studio, click on SDK manager , check mark the Google USB Driver and hit install package.
    • After Installing Google USB Driver, close SDK Manager window, Connect your phone or tablet through USB cable to your laptop or PC.
    • Now click on My Computer (Windows 7) (or) This PC(Windows 8.1).Select Manage.
    • Select Device Manager –> Portable Devices –> Your Device Name
    • Right Click on Your Device Name and Select Browse My Computer For Driver Software.
    • Point it to C:\Users\YourUserName\AppData\Local\Android\sdk\extras\google\usb_driver. Hit Next and Finish.
    • Now Hit Run Button after selecting Your Project in Project Explorer in Android studio. Choose your device and press OK.

提交回复
热议问题