简体   繁体   中英

Why is the eclipse Log Cat not working properly?

I am new to eclipse, which I want to use to develop Android applications. I am using eclipse 4.4.0 with Android Development Tools 23.0.1.1256982. Once I run a project, I click on the upper left 'DDMS' button to see the Log-Cat entries, but I only see what is in the screenshot below:

DDMS Lg猫

It looks like that Log Cat only shows the level of each log message, but neither content nor timestamp not anything else. How can I fix this in order to use LogCat to debug my code?

You dont have any devices that are connected to ADB. You probably need to get the appropriate drivers for your device or enable USB debugging. If no device shows up under the Devices tab (present in your screen shot), you will not see any log cat messages.

Causes of Logcat stopping,

  1. If you use multiple emulator same time it stopped work.
  2. Change one emulator to another.
  3. If you Don`t start a emulator.

It Solve by following steps,

DDMS-> DEVICES-> SELECT YOUR CURRENT EMULATOR-> OK

problem solved.

I think your problem is 3rd reason..goto AVD manager and start a emulator.

Update:

I see the problem now. Eclipse J2EE is known to have conflicts with Eclipse ADT. You should maintain two different Eclipses for your projects, one for your J2EE projects and a separate one for Android. Or if you want to do some development on Phone Gap/Cordova, you should install the Web Tools Platform plugin on top of ADT.


Logcat seems to have worked in the past. One problem seems to be that you only have one column of logcat showing, the level column. Right-click on the header of logcat to add more columns, or click on the border of the column to expand it to the right, or the left.

The second problem is that the 4.x emulator is still really slow. That is why you're not currently being shown a device in the device panel window. You took your screenshot too quickly. To fix that issue, you should do one of three things: wait longer, test on an actual hardware device, or install an Intel-based emulator (just be careful of that last option, that option is complicated because there are several steps involved, and most programmers end up forgetting a step or two to make that option work correctly).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM