Integrating basic android source code into Ecplise
I downloaded the Android SDK and the Eclipse Plugin and installed them. When I however use the "Open Declaration" in Eclipse on basic Android functions and classes such as setOnClickListener or ListActivity it gives me an "Source not found"-Error.
The total Android source code seems to be 2.1 GB. Where do I get the source code of those functions that I call with the API to int开发者_如何转开发egrate it into Eclipse?
Check this issue. There is a lot of links explaining how to do it.
The source code is not included with the sdk. If you wish to debug/use android source you need to download it separately from the sdk. It can be found on google's official site here. This site also contains important information about using their source code that you should read.
Was this helpful?
You can see the source code by installing a plugin in Eclipse: http://adt-addons.googlecode.com/svn/trunk/source/com.android.ide.eclipse.source.update/
精彩评论