how do you add android source code to
intelli j 10
so that i can browse android code in the IDE? yes there is a question and answer here
How to attach android source in IntelliJ 10?
but the answer fell short, the last step is 'navigate to the source on your computer!',
where is the source? where do i download it?
thanks
If you are using some old Android Platform, check this answer.
Otherwise sources should be already downloaded by the SDK Manager and available on your hard drive in the SDK folder, for example:
%ANDROID_SDK%/sources/android-16
This directory can be attached to IntelliJ IDEA Android SDK. I also recommend updating to the latest IDEA version, Android support is much better than in IDEA 10.
Related
I know this question was asked before here and an good post here. But none of the given solutions seem to work in android studio 2.0. can someone please point out how to browse the android SDK sources in android studio 2.0?
If it doesn't pickup automatically ;
Control+ Click Framework Class (Should show you decompiled code)
Choose Sources..
Point to ~\AppData\Local\Android\sdk\sources\android-23
I am already using IntelliJ IDEA. Do I have to download all the Android Studio files (almost 1 GB)?
Can't I just download the SDK and continue on developing?
Yes, you can download only the SDK. You can find the download link here, under "SDK Tools Only".
My understanding is this: IntelliJ IDEA's Android plugin does not always have all the latest Android-specific features, developed by Google, that are already in Android Studio.
IDEA is fine too, but if you seriously do Android, just get Android Studio, you'll be better off with it.
(I use—and love—IntelliJ IDEA too for backend & web development. Having both installed is no problem. Who cares about 1 GB of disk space.)
has no source attchment. you can attach the source by clicking attach source below.
what should i do. i found different solutions on the web. but it would be nice to find the best solution.
please help out regards
karan
If you use Eclipse , You can find Android Sources Plugin on Adt-addons
In ADT >=8.0.0 you can add Android sources to Android container for all your project with installing the Android source feature using http://adt-addons.googlecode.com/svn/trunk/source/com.android.ide.eclipse.source.update/ update site After installing the Android source feature all your existing projects as well as new created projects which is targeted for Android 4.0.1, 2.3.4, 2.3, 2.2, 2.1, 2.0.1, 1.6 and 1.5 will have attached the source jar.
It may not have Android API Level 15 , may be they will update soon
I posted this question on the IntelliJ community forums but it seems as if they aren't very active so I'll just post it right here on S/O. I'm new to IntelliJ and I'm switching to use it from Eclipse which was really buggy and not useful to my needs. However, I'm attempting to build an Android project in IntelliJ Idea and it is only creating a .idea folder and the src directory without any inner files in them like it should. I've got the Android-SDK properly installed and I'm using JDK 1.7 and I'm even following the directions to properly start an Android project from the IntelliJ Wiki (found here) but it still leads me to no success. It seems as if I've got the Android Support plugin already installed with my program but then again I'm not really sure. Can I get some help please so I don't have to revert back to Eclipse again? Thanks.
Try to delete Android SDK and install it again, then download at least one Platform. IDEA runs SDK tools to create Android project template, for some reason it's failing on your system.
Check if it works better with JDK 1.6.
See the screencast that I've just recorded.
I need to look at the .java files of the android sdk. I have developed applications before but I never needed to look at them so it wasn't a problem then. I saw there is a jar file android.jar that contains all the class files structured but actual sources are not there. git gives various problems to me because I am behind a weird proxy so http://source.android.com/source/using-eclipse.html hasn't been very helpful. What should I do?
EDIT: I'm talking about the java files, just to clarify. And in case you are okay with browsing the code online, Where can I find Android source code online? http://www.google.com/codesearch/p?hl=en#uX1GffpyOZk/core/java/android/
Just open the Android SDK Manager and select the Sources for Android SDK of the API level you are trying to support and click Install packages:
(In this case I selected those for SDK v4.3 API-18 and SDK v4.2.2 API-17 but I already have them installed)
If for some reason you SDK manager button doesn't show up on the Eclipse toolbar, follow this recommendations.
To link the source code to Eclipse just follow this instructions; Android Sources are usually under [ANDROID_SDK_FOLDER]/sdk/sources/android-[API_LEVEL]
You can download the ICS sources via the adk manager to your local machine and then attach them to your project in you IDE. See e.g. the blog of Lars Vogel
It is a online latest linux and android source code browsing website.
Android/Linux Source Code Cross Reference
http://hala01.com/
You can browse the .java files of the Android SDK here:
http://grepcode.com/project/repository.grepcode.com/java/ext/com.google.android/android
The links in the other 2 answers, http://hala01.com/ and http://grepcode.com/project/repository.grepcode.com/java/ext/com.google.android/android are no longer working.
You can download and view android SDK source code from this site. As of today in October 2021, source code of up to API level 31 is available.
Since such websites may become unavailable in the future, you may want to download local copies for safe keeping.