Android通过adb命令Debug调试

Android Debug后IDE执行的命令:

05/30 10:03:39: Launching module_app
$ adb push C:\fastwork\Projects\project\CJPT\module_app\build\outputs\apk\debug\module_app-debug.apk /data/local/tmp/lh.com.myapplication
$ adb shell pm install -t -r "/data/local/tmp/lh.com.myapplication"
    pkg: /data/local/tmp/lh.com.myapplication
Success


$ adb shell am start -n "lh.com.myapplication/com.lh.caijiplatform.view.activity.SpalishActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Connecting to lh.com.myapplication
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
D/ActivityThread: hoder:android.app.IActivityManager$ContentProviderHolder@711a30c,provider,holder.Provider:android.content.ContentProviderProxy@9784455
W/ActivityThread: Application lh.com.myapplication is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
I/art: Debugger is active
I/System.out: Debugger has connected
I/System.out: waiting for debugger to settle...

猜你喜欢

转载自www.cnblogs.com/jooy/p/9111377.html
今日推荐