简体   繁体   English

通过将应用程序连接到实际设备或通过 APK 在 Android Studio 中运行您的应用程序

[英]Run your app in Android Studio by connecting it to Actual Device or through APK

Is it better to test your application via USB (directly connecting your phone to the Android Studio) or by downloading the APK version of your app.通过 USB(直接将您的手机连接到 Android Studio)或通过下载您的应用程序的 APK 版本来测试您的应用程序更好。 I've been using emulator and it's really time consuming because it keeps lagging on my laptop.我一直在使用模拟器,它真的很耗时,因为它在我的笔记本电脑上一直滞后。 I wanna know which is faster and safer?我想知道哪个更快更安全?

Connecting your phone via USB is always a more reliable and faster option (even if u don't consider the time it takes to copy and paste your APK file from pc to phone) You can also do a activity restart rather than restarting whole app this way通过 USB 连接您的手机始终是一个更可靠和更快的选择(即使您不考虑将 APK 文件从 pc 复制并粘贴到手机所需的时间)您也可以重新启动活动而不是重新启动整个应用程序方法在此处输入图像描述 which is less time consuming.这样比较省时。 You can even specify a certain activity to launch for testing.您甚至可以指定要启动的特定活动以进行测试。 It also provides lots of Monitoring options like device monitoring, Network Monitoring, Database Inspection, Layout Inspection and so on.它还提供了许多监控选项,如设备监控、网络监控、数据库检查、布局检查等。

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

相关问题 Android App与您的设备android studio不兼容 - Android App is not compatible with your device android studio Android Studio 构建调试 apk 但不在设备上部署/运行 - Android Studio builds a debug apk but doesn't deploy/run on device 我在android studio中的应用程序经常在模拟器和实际设备中崩溃 - My app in android studio is crashing frequently both in emulator and actual device 无法在实际设备或AVD上运行我的Android应用 - cannot run my android app on actual device or AVD Android Studio 3.5.2 - 错误:您当前选择的变体 (app-release-unsigned.apk) 的 apk 未签名 - Android Studio 3.5.2 - Error: The apk for your currently selected variant (app-release-unsigned.apk) is not signed 在按钮上单击打开一个应用程序,该应用程序已安装在您的 android studio 设备上 - On button click open an app that isinstalled on your device in android studio Android Studio 3-安装后无法运行应用APK - Android Studio 3 - Can't run app after install APK 为什么直接在Android Studio运行app,结果apk是unsigned - why run the app directly in Android Studio,the result apk is unsigned 成功构建和APK安装后,Android Studio App在运行时崩溃 - Android Studio App crashes on run after successful build and apk installation Android studio 未连接到虚拟设备 - Android studio not connecting to virtual device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM