简体   繁体   English

在Android Studio中运行应用

[英]Running app in Android Studio

I have an Asus Zenfone 2 Laser and I'm using android studio to create apps. 我有一个Asus Zenfone 2 Laser,正在使用android studio创建应用。 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; 当我加载存储在计算机硬盘中的应用程序进行调试时,没有问题,但是当该应用程序存储在USB设备中时,首先android studio警告我的手机中已经存在该应用程序的版本,并询问是否必须卸载它以安装新版本; when I click the button to uninstall it, it doesn't install the new one... 当我单击该按钮将其卸载时,它不会安装新的按钮...

在此处输入图片说明 How can I fix the problem? 我该如何解决该问题? Thanks 谢谢

You can - Try these steps one by one 您可以-一步一步尝试这些步骤

  1. Completely uninstall the app from your phone 从手机上完全卸载应用程序
  2. On Android Studio click on BUILD->CLEAN PROJET 在Android Studio上,单击BUILD-> CLEAN PROJET
  3. On Android Studio click on BUILD->BUILD APK 在Android Studio上,单击BUILD-> BUILD APK
  4. An APK will be created on your HardDisk at the save location APK将在您的硬盘上的保存位置创建
  5. Copy and Paste the newly created APK from COMPUTER to PHONE using USB cable 使用USB电缆将新创建的APK从COMPUTER复制并粘贴到PHONE
  6. Install the new App manually 手动安装新应用
  7. Now try to build and launch the app to phone via Android Studio 现在尝试构建并通过Android Studio将应用程序启动到手机
  8. From now, it will be automatically installed and loaded 从现在开始,它将自动安装和加载

Hope it solves... 希望能解决...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM