Issue in Android-N building on Ubuntu 16.04 system

457 views
Skip to first unread message

RAVIKIRAN J J

unread,
Jul 27, 2017, 12:02:28 PM7/27/17
to Android Building
Hi All,


I am facing the below issue on building Android N on my Ubuntu 16.04 machine.Please advise.


Running kati to generate build-nano_6q-mmm-external_doclava_Android.mk.ninja...
out/build-nano_6q-mmm-external_doclava_Android.mk.ninja is missing, regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
TARGET_PRODUCT=nano_6q
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-87-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=1.0.0-ga-rc10
OUT_DIR=out
============================================
Checking build tools versions...
************************************************************
You asked for an OpenJDK based build but your version is
java version "1.8.0_131" Java(TM) SE Runtime Environment (build 1.8.0_131-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode).
************************************************************
build/core/main.mk:231: *** stop.
build/core/ninja.mk:163: recipe for target 'out/build-nano_6q-mmm-external_doclava_Android.mk.ninja' failed
make: *** [out/build-nano_6q-mmm-external_doclava_Android.mk.ninja] Error 1



Thanks and Regards,
Ravikiran J J

Ajai Jose

unread,
Jul 27, 2017, 9:15:24 PM7/27/17
to Android Building
14.04 is officially supported. Whereas for 16.04 you might need more packages to be installed for build to succeed.

Paul Chang

unread,
Jul 28, 2017, 11:33:53 AM7/28/17
to android-...@googlegroups.com
You asked for an OpenJDK

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-building+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alessio Balsini

unread,
Jul 28, 2017, 11:33:54 AM7/28/17
to android-...@googlegroups.com
Hi,

I'm facing no issue with Ubuntu 16.04.
Regarding your specific issue, please make sure you have OpenJDK 8
(openjdk-8-jdk) installed and, in general, that your environment is
properly initialized.

https://source.android.com/source/initializing

Alessio
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to android-buildi...@googlegroups.com
> <mailto:android-buildi...@googlegroups.com>.

Blasio Ojenge

unread,
Aug 8, 2017, 11:58:25 AM8/8/17
to Android Building



the error is "build/core/ninja.mk:163: recipe for target 'out/build-nano_6q-mmm-
external_doclava_Android.mk.ninja' failed", try and fugure out is that should be a folder or a file to be created.. I suggest you check that first, (I might be wrong though)

Kumar Gupta, Sanjiv

unread,
Aug 9, 2017, 9:58:46 AM8/9/17
to android-...@googlegroups.com

Please use OpenJdk 8 java, and not the official jdk from oracle.

--

--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.

To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages