2017-04-26 92 views
0

我不是android studio的專家,但直到現在我才能夠做到我需要的東西。 現在在某些情況下,我的應用程序崩潰了一些時間,我不知道爲什麼,也找不到任何日誌。 我沒有使用AS作爲一個詭計,在更新到2.3.1之後,在日誌(尤其是錯誤)中沒有標籤(在AS底部)在Android工作室中缺少日誌

我唯一能找到的東西是在Debug標籤下面幾行:

04/26 12:58:02: Launching app 
$ adb install-multiple -r -p APPNAME PATH\app\build\intermediates\split-apk\debug\slices\slice_7.apk 
Split APKs installed 
$ adb shell am start -n "APPNAME.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D 
Connecting to APPNAME 
Connected to the target VM, address: 'localhost:8607', transport: 'socket' 
Disconnected from the target VM, address: 'localhost:8607', transport: 'socket' 

最後一行的應用程序crashs後,我得到的。 而在Android監視器選項卡有這樣的幾行:

04-26 15:05:42.244 3164-3175/? W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.google.android.gms/databases/metrics.db' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed. 

但我不我的應用程序使用SQLite。誰能幫我?

+0

你可能不使用一個數據庫,但'com.google.android.gms'(谷歌播放服務)確實 –

+0

你可以嘗試運行'ADB logcat'自己在一個終端(假設它在你的PATH上) –

回答

2

我想你已經在Android Monitor窗口中選擇了Firebase過濾器。將其更改爲只顯示選定的應用

change ur filter to this!