any decent recipe for setting up android build env on ubuntu 12.04?
Robert P. J. Day
rpjday at crashcourse.ca
Sun Jun 3 10:17:31 UTC 2012
just to be clear, has anyone nailed down the proper recipe for doing
android development on ubuntu 12.04, given that the current checkout
for android source appears to require sun's java 6 and no other
version? here's the salient snippet from the AOSP's
build/core/main.mk file:
# Check for the correct version of java
java_version := $(shell java -version 2>&1 | head -n 1 | grep '^java .*[ "]1\.6[\. "$$]')
ifneq ($(shell java -version 2>&1 | grep -i openjdk),)
java_version :=
endif
ifeq ($(strip $(java_version)),)
$(info ************************************************************)
$(info You are attempting to build with the incorrect version)
$(info of java.)
$(info $(space))
$(info Your version is: $(shell java -version 2>&1 | head -n 1).)
$(info The correct version is: Java SE 1.6.)
$(info $(space))
$(info Please follow the machine setup instructions at)
$(info
$(space)$(space)$(space)$(space)http://source.android.com/source/download.html)
$(info ************************************************************)
$(error stop)
endif
so if i read that correctly, that build structure *requires* sun's
java 6, which i can install and mix in with openjdk if, perhaps, i
mess with "update-alternatives", etc.
in any event, any android gurus working on ubuntu 12.04 who have a
clean setup recipe for this? thanks.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
More information about the ubuntu-users
mailing list