Use this tag on questions related to "Android.mk" files which are written to describe your C/C++ sources to the Android NDK build system.
Questions tagged [android-make]
54 questions
9
votes
2 answers
MODULE.TARGET.SHARED_LIBRARIES.libjpeg already defined error
I am trying to build kernel for AOSP 4.4.2 for a device. When I compile the kernel I get
build/core/base_rules.mk:134: *** vendor/google/libs:
MODULE.TARGET.SHARED_LIBRARIES.libjpeg already defined by external/jpeg. Stop.
I understand that the…

ChanChow
- 1,346
- 7
- 28
- 57
9
votes
2 answers
Couldn't parse API file "frameworks/base/api/current.txt"
I tried adding some files in Android framework. Everything goes well, except in the end of compilation i am getting below error.
I tried make update-api too, but no luck, every time in compilation it is giving below errors. If anybody know how to…

AAnkit
- 27,299
- 12
- 60
- 71
8
votes
0 answers
GNUMAKE Expected exactly one source file error
So I am working on building a NDK sample in Android Studio 2.2.2. The project use clapack (a math library) and it also has a testclapack.cpp at the same level as clapack folder. An Android.mk file is also at the same directory.
The content of the…

PsychoTodd
- 91
- 4
7
votes
1 answer
Android.mk conditions
Is there any way to use conditional expressions in Android.mk? I need it to do smth like this:
IF arch = AREABI_V7
*use path for my arm_v7 static libs*
ELSE
*use path for arm static libs*

givi
- 1,883
- 4
- 22
- 32
7
votes
2 answers
Adding a jar file from libs/ to Android.mk
I almost found the answer in Adding a external jar reference in Android.mk but I'm still not quite there.
My project contains commons-io-2.4.jar and jsch-0.1.49.jar in the libs/ directory. Everything builds beautifully in eclipse. Now I want to…

Edward Falk
- 9,991
- 11
- 77
- 112
6
votes
2 answers
android ndk no rule to make target
I realise this question has been asked before but no answers have been able to solve my problem.
I'm trying to build a sample android app provided with NDK which has the following Android.mk file:
LOCAL_PATH := $(call my-dir)
MY_PATH :=…

Jono Brogan
- 341
- 7
- 19
5
votes
0 answers
AOSP build not taking latest changes in the vendor folder
Replaced the files in the vendor/XXXX folder with the latest version and initiated a build(m -j8). It took less than 5 mins to complete the built.
New system images are created. However, changes are not updated in the emulator.
However things work…

user2913809
- 325
- 2
- 15
4
votes
0 answers
android project build on Linux but not on windows
I am trying to build this repository that contain native codes. it build on Ubuntu without any problem but on windows build was failed showing this error:
'make' is not recognised as an internal or external command,
operable program or batch…

Hadi Ahmadi
- 1,924
- 2
- 17
- 38
4
votes
1 answer
How to include .aar in AOSP with android.mk
I need to build an application with android.mk in aosp build tree.
I have a custom .arr lib with me, Which resides in the following folder apps/libs/mylib.aar
Anyone can tell me how to include the aar in the android aosp build.
I already tried the…

Midhun PM
- 512
- 1
- 7
- 24
4
votes
1 answer
How does android generate 'current.txt' it's api description file?
I'm investigating how to generate a file exactly like current.txt for my own java source (I want it to be compatible with other code I use to parse the android current.txt, so I want the format to be the same).
The android repo has a file called…
user712850
4
votes
3 answers
Building app with CrossWalk embedded
I'm trying to build a browser with CrossWalk as a dependency.
But I keep getting an exception regarding XWalkInternalResources:
W/dalvikvm( 3165): VFY: unable to resolve static field 4639 (cpu_arch_mismatch_message) in…

dthomasen
- 826
- 15
- 32
3
votes
1 answer
AOSP Build - when switching from eng to user or userdebug, data directory no longer created
I am building AOSP for a custom device (let's call it mycustomdevice), and have successfully built, imaged and deployed an Engineering build (TARGET_BUILD_VARIANT=eng).
However, when I try to do a build using either a user or userdebug build, the…

CJBS
- 15,147
- 6
- 86
- 135
2
votes
1 answer
What is the purpose of the .mk file in android
I want to how a .mk file works and where I have to use it? I have some downloaded source code and it includes lots of .mk extension files and I am stuck not knowing how to handle it.

Renegade
- 157
- 1
- 10
2
votes
2 answers
Setting up / Running tests for modules built on AOSP
I am new to AOSP.
We are developing an AOSP C++ middleware module. Currently we have the LOCAL_MODULE setup as the name Foo, with some LOCAL_SHARED_LIBRARIES like Audio, SqliteDatabase, Curl, http client, etc...
I would like to see if it is possible…

Dillon
- 364
- 5
- 18
2
votes
1 answer
Resource not found error in aosp build
When i build the android application in AOSP build tree, it generate the following error.
error: resource style/Base.Widget.AppCompat.Button (aka com.sample.application:style/Base.Widget.AppCompat.Button) not found.
error: resource…

Midhun PM
- 512
- 1
- 7
- 24