简体   繁体   English

Android Studio 未部署应用程序

[英]Android Studio Not Deploying App

I currently have the latest version of Android Studio and I'm trying to deploy an app onto my phone running Android 5.0.1 Lollipop.我目前拥有最新版本的 Android Studio,并且正在尝试将应用程序部署到运行 Android 5.0.1 Lollipop 的手机上。 After building, the terminal shows that the apk is being installed onto the phone and the status indicates that it is running.构建完成后,终端显示apk正在安装到手机上,状态显示正在运行。 However, nothing shows up on my phone (no running applications and the app does not show up in the installed applications list).但是,我的手机上没有显示任何内容(没有正在运行的应用程序,并且该应用程序未显示在已安装的应用程序列表中)。 I've tried disabling auto-run in studio settings but it doesn't help.我试过在工作室设置中禁用自动运行,但没有帮助。 Any ideas why it's doing this?有什么想法为什么要这样做? Also I reinstalled the adb driver just in case that was the cause.我还重新安装了 adb 驱动程序,以防万一。 It might be helpful to note also that this happens even on the default template apps generated by studio.还需要注意的是,即使在工作室生成的默认模板应用程序上也会发生这种情况。

try to turn off the Instant Run尝试关闭即时运行

File - Settings - Search Instant Run , unselect all the options文件 - 设置 - 搜索即时运行,取消选择所有选项

Hope this would help.希望这会有所帮助。

In my case the ' HMS Toolkit ' (version 6.3.0.3003.AF) plugin, on Android Studio Chipmunk (version 2021.2.1), was causing this.在我的情况下,Android Studio Chipmunk(版本 2021.2.1)上的“ HMS Toolkit ”(版本 6.3.0.3003.AF)插件导致了这种情况。 I've disabled it and it all started working again.我已经禁用它,它又开始工作了。

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

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