开发者

Android: LogCat points to wrong class

开发者 https://www.devze.com 2023-03-30 17:10 出处:网络
Let\'s say you have 2 projects: Egg and Spam, with Spam being a clone of Egg that you\'re working on. You make some changes to a class in Spam, run it and it crashes. You lo开发者_开发知识库ok at LogC

Let's say you have 2 projects: Egg and Spam, with Spam being a clone of Egg that you're working on. You make some changes to a class in Spam, run it and it crashes. You lo开发者_开发知识库ok at LogCat and it's telling you that line 40 of class DBAdapter in Spam has some errors in it. You tell LogCat to jump to that line, but instead it takes you to line 40 of class DBAdapter in Egg. Would anyone know how this sort of thing is fixed?


Yes, eclipse (or LogCat) mixes them up if the source files are the same and the project you are currently working on is alphabetically lower (Your project "SPAM" and "EGG"). Since EGG shows up first , then SPAM that's why it is going to the source of EGG.

Easy solution, just close EGG Project for a while, then click on LogCat to jump to that line. It will surely point correctly in SPAM Project. cheers

0

精彩评论

暂无评论...
验证码 换一张
取 消