作者:上帝认我做干爹 | 来源:互联网 | 2023-05-19 06:50
ImfollowingsometutorialsaboutbuildingappsinAndroidStudio,butforsomereasonitsnotlau
I'm following some tutorials about building apps in Android Studio, but for some reason it's not launching/installing the latest version of my app when I click 'run'. I have to manually uninstall the app on the phone and then click run after making changes in Android Studio for the app to get updated. Any ideas?
我正在关注有关在Android Studio中构建应用程序的一些教程,但由于某些原因,当我点击“运行”时,它不会启动/安装我的应用程序的最新版本。我必须在手机上手动卸载应用程序,然后在Android Studio中进行更改后单击运行以使应用程序更新。有任何想法吗?
Here is the console output:
这是控制台输出:
Waiting for device.
Target device: htc-htc_one_m8
Uploading file
local path: /home/brandon/AndroidStudioProjects/JustJava/app/build/outputs/apk/app-debug.apk
remote path: /data/local/tmp/com.example.android.justjava
No apk changes detected. Skipping file upload, force stopping package instead.
DEVICE SHELL COMMAND: am force-stop com.example.android.justjava
Launching application: com.example.android.justjava/com.example.android.justjava.MainActivity.
DEVICE SHELL COMMAND: am start -D -n "com.example.android.justjava/com.example.android.justjava.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.android.justjava/.MainActivity }
Waiting for process: com.example.android.justjava
Connected to the target VM, address: 'localhost:8638', transport: 'socket'
Disconnected from the target VM, address: 'localhost:8638', transport: 'socket'
6 个解决方案