Search code examples
javaandroidandroid-source

Android Source Not Compilable?


So I've been looking at code from various parts of the Android git, but when I try to load and compile many of them (camera, media player, etc) they reference classes and parts of the SDK that just aren't available even with my SDK version updated to 2.2. (for example the bitmap config option inNativeAlloc)

Is there a reason that these are not in the SDK given out to developers?


Solution

  • If you want to compile applications from the android open source project (ASOP), like the browser, camera, media player etc. You have to build on a Linux or Mac. You cannot compile the source on Windows.

    See Get Android Source Code on info for building the source and the OS requirements requirements