I have just installed Android studio on a win 7 and wanted to compile the first sample code but the compiling fails
Executing tasks: [:app:assembleDebug] Co
This is bug https://code.google.com/p/android/issues/detail?id=82099 which should be fixed in the 24.0.1 release of the SDK, which is available now.
The bug is that an internal script that finds the distribution of Java isn't working correctly on 32-bit Windows systems.