After having this issue as well and doing a little research, I came across this thread and another one that tipped me off. I was pulling my hair out already.
It turns out that the problem is with the build order of your projects (mine was anyway). Since ADT/SDK v14 changed the way library projects are referenced, the build order needs to be correct. Make sure all of the libraries your app uses are built first. I just moved the "src" and "gen" folders for each of my projects to the bottom and now it builds the library first and I am able to debug it and view the source of my library files through the main project.
In case someone doesn't know where to do this, in Eclipse, right click on your project and "Build Path" and then click "Configure Build Path". Then, on the "Order and Export" tab, move the two folders for your project to the bottom of the list below your libraries. I did this for all of my projects and the library projects.
You can also do it globally in Eclipse from Windows->Preferences->General->Workspace->Build Order and moving your library projects to the top. I think the build order defined in each project will override this though, so you may want to do it in both places to solve the issue now and for future projects.
I assume you are opeining library project and there you put brakepoint. Try this: On main project open Library Projects->[yourlibrary.jar]->[yourfile.class] from Package Explorer, and then in .class file put brakepoints. This works for me at least :)
Sometimes this happens to me. Not sure about the reason but the way I solve is:
Remove the main project from eclipse. -- Closs Eclipse -- Delete the jar file in the library project -- Open Eclipse -- Wait for the library project to compile -- Import the main project
This problem also occurs with release 21 of ADT inside Juno. As a workaround, in the "debug" view of the debug perspective (where you see threads and method invocation traces), right click and edit source lookup path.
I had the same problem in a project today. The project consists of an app which has two library dependencies. I could not see code during debugging and when using auto-completion when overriding methods Eclipse was unable to deduce proper argument names.
First of all, the problem manifested itself by showing the the 'gen' folder was used as the one that contained the source. To check whether this is the same issue go to your app project, open the Android dependencies and have a look at the properties of the your library dependencies. Location path said /libraryprojectname/gen.
If this is also your problem then go to the 'Order and Export' tab of each library project and move the 'gen' item below the 'src' item. As soon as you click OK Eclipse will work a bit and when you check the Android dependency properties the location path should say: /libraryprojectname/src. Open click the dependency and open any class inside the jar. It should show the source.
I am using ADT plugin 20.0.3 with Android SDK Tools 20.0.3 and Android SDK Platform Tools 14.
The following worked for me on Eclipse Juno:
In Project Properties/Java Build Path:
- In the Projects tab, added my library projects.
- In the Order and Export tab, moved my library projects to the top, and checked them
Not sure if it's relevant, but Android SDK tools is rev 20.0.3 and Android SDK platform tools is 14.
Tried all of the above and it did not work for me, however the workaround detailed here did.
- Start debugging, and run until you hit a breakpoint (and precisely get a .class file instead of the .java you would like to have)
- Right click in the Debug view of the Debug perspective (for example on the call stack), and choose "Edit Source Lookup Path"
- Add all your projects above "Default", via "Add..." > "Java project" > "Select All"
(I'm using ADT 15.0.2 preview from http://tools.android.com/download)
- Unable to Debug Library Projects with ADT v14 - Source Not Found
- Source not found error given in debug mode when running a method in Java with a try/catch block
- Updated Eclipse and ADT not working with previously working packages.- Source not found
- Debug Android library project with java source code
- UnsatisfiedLinkError - Unable to load library - Native library not found in resource path
- Eclipse not linking private member names for library with attached source
- unable to load library 'yyy.dll': native library (win32-x86/yyy.dll) not found in resource path (jna + dll + eclipse rcp)
- Eclipse c++ library not found in debug mode but found in release mode
- Source not found in Eclipse with Tomcat
- Kura source code maven build failed with jdk:jdk.dio:jar:1.0.1 not found
- Debugging java source file with multiple classes in eclipse: Source not found
- Unable to download CrudRepository source in Eclipse IDE - Source Not Found
- Play! Framework Eclipse Debug Source Not Found
- Eclipse Class File Editor Source not Found when adding library to java project
- My JUnit tests executes with maven build in Java 11, but unable to run same Junit tests via RunIT->Run As->Units, which always says not JUnits found
- Source not found with debugging code in java
- If I debug JSF webapp it gives me SOURCE NOT FOUND
- Source not found when debugging all projects
- source not found in java library
- Eclipse with Glassfish 4 DEBUG source lookup not working
- eclips source not found debug remotely
- jsf with eclipse: Library of referenced project not found
- Refactorings fail in Eclipse with ADT when there are library projects
- Debug JSP Files On WebLogic 11g - Source Not Found
- Library projects not recognized in Android with latest android tools/sdk updates
- ADT requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found
- Eclipse java debugging: source not found
- Project with path ':mypath' could not be found in root project 'myproject'
- The APR based Apache Tomcat Native library was not found on the java.library.path
- Android Studio - Library reference ../google-play-services_lib could not be found importing project
More Query from same tag
- Java novice error Android Programming sendMessage method
- Reading a openstreetmap XML file in C++ using eclipse
- Rational Application Developer: find the IDE's location on disk (from within the IDE)
- Shortcut Keys in eclipse Ganymede version
- Don't show autocomplete in eclipse when backspace all letters
- Eclipse RCP add log statements from other plug-ins to log plug-in
- how do i build a JDBC connection url from this XML connection data?
- How to rename a method/field from Eclipse when not declared
- eclipse C project shows errors (Symbol could not be resolved) but it compiles
- use org.eclipse.core.resources method in my java app
- Eclipse: Green rectangle label on Class
- is it possible to get name of the application from the external class?
- Can't read txt file with Scanner in Eclipse (Java)
- Eclipse Error but doesnt show where
- How to show hover text for a swt text box
- How to create a servlet filter in Eclipse?
- JAVA nested while loop error -should be amazingly simple
- Eclipse Juno 64 bit Crash on Ubuntu 12.04 64 bit
- Eclipse: Limit resource and type searches to just the open project?
- Search classes from SWT UI in eclipse plugin development
- Maven Unicode Encoding build failure
- How to install Maven integration plugin in Eclipse Helios?
- How do I import an eclipse workspace into intelliJ
- Eclipse process sleep on Mac OS X El Capitan beta 3 with JDK 8
- eclipse plugin for rectangular select/cut/paste regions?
- Vibration after regular intervals
- How to inject multiple instances of a services in eclipse e4?
- Eclipse Window Builder error under Java 10
- This method is an undefined type of object
- Eclipse JCOP Tools Error - "no definition for label Label: 15659979, , block 230, def null"