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...

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM