Eclipse: "Change source search path ..."

I am developing on a Mac with Eclipse and have a skeleton for an application that implements standard structure callbacks (onCreate, onDestroy, onPause, etc.). When I set breakpoints in callbacks, the debugger stops and displays a tab that says:

ActivityThread.performLaunchActivity (ActivityThread $ ActivityRecord, Intent) line: 2477

And in the body of the tab page there is red text with the inscription "Source not found" and a button with the inscription "Change the source search path ...".

I tried to add several paths through "Edit source search path ...", but I can not find the one that is looking for Eclipse.

Can someone point me in the right direction?

+3
source share
2 answers

It looks like your program has stopped in Android code. Often these internal errors (null pointers, etc.) are caused by an error in your code, but there are no error messages there, instead you get an internal failure.

However, sometimes it can help in some cases to view the Android source code. This can be done quite easily.

+3
source

When trying to debug / start, it redirects the source code editing page. This time we need to specify the java source code by clicking the Add button (Java Project)

Pay attention to the screenshot.

enter image description here

enter image description here

0
source

Source: https://habr.com/ru/post/1383894/


All Articles