第一行断点仅断点

2023-09-07 22:59:53 作者:我可以和你相亲嘛

我Android Studio中(我用的IntelliJ IDEA + SDK)开发我遇到的调试问题。我所有的断点并不适用于所有项目。排除是在一个方法的第一行中断点例如:断点1号线工程2号线不断点的提示告知发现此行没有来源。好像ProGuard的启用,但它没有。

I am developing in Android Studio (i've used IntelliJ IDEA + SDK) I've encountered debugging problem. All my breakpoints don't work in all projects. Exclusion is the breakpoint on the first line of a method for example: Breakpoint on line 1 works, on line 2 doesn't breakpoint's Hint tells that no sources found for this line. It seems like proguard is enabled, but it doesn't.

我曾尝试创建新的空项目(摇篮)。它也不能正常工作。你有什么想法?

I have tried create new empty project (Gradle). It is also not working. Have You any idea?

推荐答案

我已经解决了这个问题。我是一个真正的设备(的Nexus 4与Android 4.4奇巧)上运行调试。而且我已经启用的 ART代替的Dalvik 在设备上。当我切换回Dalvik的所有断点开始工作。

I've solved the problem. I was running debugging on a real device (Nexus 4 with Android 4.4 KitKat). And I' have enabled ART instead Dalvik on the device. All breakpoint start to work when i've switched back to Dalvik.