Yes, the requirements have diverged. The Android source tree (android platform) now uses Java 7 features and hence requires Java 7. However, our minimum requirement for android tools is Java 6 as of now. As a result, to compile the tools, you need to use Java 6. You can ofcourse remove that check - it is there only to make sure that we don't accidentally release tools that were compiled using Java 7.
On Mon, Jun 16, 2014 at 2:56 AM, Diego Costantini < [email protected]> wrote: > Hi Xavier, > Here <http://source.android.com/source/initializing.html> is mentioned > that android sdk requires java 7, but then when trying to build the tools > there is a check to use java 6. > What did I miss? :) > > > On Friday, May 16, 2014 8:24:00 PM UTC+2, Xavier Ducrohet wrote: >> >> Hello all, >> >> Starting last week, we have started a migration of the way tools >> development work in AOSP. Originally, the development was done in the main >> "master" branch, alongside the Android platform, and everything was built >> with Make. >> >> Last year we introduced Gradle as the way to build the Java libraries >> used by the host. >> >> We have now unbundled the tools from the rest of the platform. What does >> this mean: >> >> - Using 'make' in the main master branch will not build the dev tools >> anymore. Right now the projects for the dev tools are still there but there >> will disappear. >> - There is a new branch to checkout only the dev tools projects, and they >> build exclusively with Gradle (at least as an entry point, we still call >> out to make/ant/maven/gant to build various tools) >> >> The new branches are called 'ub-tools-idea133' (current dev branch), and >> 'ub-tools-master' for future work. There is no need to use -g anymore to >> restrict the projects that are checked out. >> >> The instructions to start building are: >> >> repo init -u https://android.googlesource.com/platform/manifest -b >> ub-tools-idea133 >> repo sync >> cd tools >> ./gradlew assemble >> >> There is also a "makeSdk" task that will build the SDK Tools component of >> the SDK. >> >> I'll update tools.android.com later today. >> >> -- >> Xavier Ducrohet >> Android SDK Tech Lead >> Google Inc. >> http://developer.android.com | http://tools.android.com >> >> Please do not send me questions directly. Thanks! >> > -- > You received this message because you are subscribed to the Google Groups > "adt-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
