Android Studio断点调试的时候提醒Warning: No executable code found at line

在Studio的断点调试的时候,增加断点后,总是提醒无可执行代码,可明明该语句会被执行的,于是乎就搜索了一下,最后结果如下,应该是Studio的问题:

http://stackoverflow.com/questions/11591662/cannot-set-java-breakpoint-in-intellij-idea

I had similar problems and various attempts has been applied. Below is my usual steps:

  1. If you are using Maven dependencies, go to Maven Projects -> refresh
  2. If that does not work, Try top menu --> Build --> Rebuild Project
  3. If that still doesn't work, try top menu --> File --> Invalidate Cache/Restart
  4. If that still doesn't work, then $CATALINA_BASE/bin/catalina.sh stop, then start

After this, usually it covers 99% of the problems. Otherwise, Probably you will have to examine some other possibilities.

你可能感兴趣的:(Android Studio断点调试的时候提醒Warning: No executable code found at line)