Unable to build android from source - Invalid LOCAL_NDK_VERSION '4'

941 views
Skip to first unread message

nhack

unread,
Jul 6, 2011, 7:50:58 AM7/6/11
to Android Building
Hi,

I'm new to the Android platform and I have tried today to build it
from source. After I have downloaded the source I have Initialized the
environment, chos the target as full_crespo, and when I run make I get
the following error message:

nhack@ubuntu:~/WORKING_DIRECTORY$ make
============================================
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=3.1.4.1.5.9.2.6.5
TARGET_PRODUCT=full_crespo
TARGET_BUILD_VARIANT=userdebug
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=OPENMASTER
============================================
build/core/binary.mk:25: *** external/stlport: Invalid
LOCAL_NDK_VERSION '4' Choices are . Stop.

My build system is an Ubuntu 11.04 x86.

Any idea what I need to do to get the Android sources compiled?

Ying Wang

unread,
Jul 6, 2011, 12:16:24 PM7/6/11
to android-...@googlegroups.com
It seems your source tree is incomplete.
Check if the following directory exists:
prebuilt/ndk/android-ndk-r4/
(Assuming you are on the master branch.)


--
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

Marius-Simion Cristea

unread,
Jul 6, 2011, 12:29:16 PM7/6/11
to android-...@googlegroups.com
No,

I don't have that directory. When I've synchronized my sources the synchronization process stopped because of the Internet connection, than I've restarted it again and it seemed to me that it completed successfully, but maybe it didn't. Is there a way to clean my working directory and start the synchronization again?

2011/7/6 Ying Wang <wang...@android.com>



--
Marius Cristea

Jean-Baptiste Queru

unread,
Jul 6, 2011, 12:38:10 PM7/6/11
to android-...@googlegroups.com
You can first try: "rm -rf prebuilt ; repo sync -l prebuilt"
If that's still not enough: "rm -rf prebuilt ; repo sync prebuilt"
If that's still not enough and you have a solid internet connection:
"rm -rf prebuilt .repo/projects/prebuilt.git ; repo sync prebuilt".

JBQ

--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

nhack

unread,
Jul 13, 2011, 1:20:54 PM7/13/11
to Android Building
Thanks,

This solved my problem, and I was able to build the source.

On Jul 6, 7:38 pm, Jean-Baptiste Queru <j...@android.com> wrote:
> You can first try: "rm -rf prebuilt ; repo sync -l prebuilt"
> If that's still not enough: "rm -rf prebuilt ; repo sync prebuilt"
> If that's still not enough and you have a solid internet connection:
> "rm -rf prebuilt .repo/projects/prebuilt.git ; repo sync prebuilt".
>
> JBQ
>
> On Wed, Jul 6, 2011 at 9:29 AM, Marius-Simion Cristea
>
>
>
>
>
>
>
>
>
> <criste...@gmail.com> wrote:
> > No,
>
> > I don't have that directory. When I've synchronized my sources the
> > synchronization process stopped because of the Internet connection, than
> > I've restarted it again and it seemed to me that it completed successfully,
> > but maybe it didn't. Is there a way to clean my working directory and start
> > the synchronization again?
>
> > 2011/7/6 Ying Wang <wangy...@android.com>
>
> >> It seems your source tree is incomplete.
> >> Check if the following directory exists:
> >> prebuilt/ndk/android-ndk-r4/
> >> (Assuming you are on the master branch.)
>

Ranganath TM

unread,
Mar 14, 2012, 4:23:00 AM3/14/12
to android-...@googlegroups.com
Hi nhack,

How did you solve the problem.

Thanks
Ranga
Reply all
Reply to author
Forward
0 new messages