问题
I have an Asus Zenfone 2 Laser and I'm using android studio to create apps. When I load an application stored in the hard disk of my computer for debugging, no problems, but when the application is stored in a USB device, at first android studio warns that there is already a version of the same app in my phone and asks if it has to uninstall it in order to install the new version; when I click the button to uninstall it, it doesn't install the new one...
How can I fix the problem? Thanks
回答1:
You can - Try these steps one by one
- Completely uninstall the app from your phone
- On Android Studio click on BUILD->CLEAN PROJET
- On Android Studio click on BUILD->BUILD APK
- An APK will be created on your HardDisk at the save location
- Copy and Paste the newly created APK from COMPUTER to PHONE using USB cable
- Install the new App manually
- Now try to build and launch the app to phone via Android Studio
- From now, it will be automatically installed and loaded
Hope it solves...
来源:https://stackoverflow.com/questions/44247144/running-app-in-android-studio