我昨天安装了Android Studio,我尝试使用LogCat查看日志.但是在logcat中没有任何东西可以显示.我使用终端运行./adb logcat它的工作原理.
是否有人可以向我解释如何在Android Studio中使用logcat?
我刚刚将Android Studio的版本升级到2.3并且gradle到3.3版本,我丢失了一个最有用的功能,即Debug Console中的日志.当我使用调试模式运行应用程序时,调试控制台中显示的唯一日志是:
03/03 10:35:40: Launching app Split APKs installed
$ adb shell am startservice com.myapp.android/com.android.tools.fd.runtime.InstantRunService
$ adb shell am start -n "com.myapp.android/com.myapp.android.UI.SplashActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Connecting to com.myapp.android Connected to the target VM, address: 'localhost:8601', transport: 'socket'
Run Code Online (Sandbox Code Playgroud)
之后没有显示任何内容.知道如何解决这个问题吗?
我正在物理设备上测试我的应用
在调试运行
Console
$ adb push C:\Users\arjun\AndroidStudioProjects\Scol\app\build\outputs\apk\app-debug.apk /data/local/tmp/com.example.arjun.scol
$ adb shell pm install -r "/data/local/tmp/com.example.arjun.scol"
pkg: /data/local/tmp/com.example.arjun.scol
Success
$ adb shell am start -n "com.example.arjun.scol/com.example.arjun.scol.login.Login" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.example.arjun.scol | com.example.arjun.scol.test
Waiting for application to come online: com.example.arjun.scol | com.example.arjun.scol.test
Connecting to com.example.arjun.scol
Connected to the target VM, address: 'localhost:8600', transport: 'socket'
Disconnected from the target VM, address: 'localhost:8600', transport: 'socket'
Run Code Online (Sandbox Code Playgroud)
我的应用程序因错误而崩溃,但...中没有显示任何内容debug console...这发生在updating android studio to 2.3..
但是当我滚动浏览时 …
debugging android-logcat android-debug android-studio android-monitor