Questions tagged [android.mk]

An Android.mk file is written to describe your sources to the build system.

Android.mk build file is written to describe your C and C++ source files to the Android NDK. You can read full file specification here.

211 questions
2
votes
1 answer

How to add Room,Lifecycle,Paging libraries in Android.mk ( AOSP build)

I created an application with Room,Lifecycle,Paging libraries in android studio,its working well. Then I tried to build the same application in AOSP,But I can't include Room,Lifecycle,Paging libraries. I found all these libraries in…
2
votes
2 answers

Android.mk jar file import java.lang.Error: packaging failure: java.lang.ClassNotFoundException

I have recently started android application development in AOSP and came across an agenda of getting code coverage for manual testing scenarios. I came across an option of using an emma.jar library to get the same done. But when I use the same the…
Nikhil S
  • 23
  • 2
  • 8
2
votes
1 answer

How to add 3rd party gradle library in android.mk and build

Im working on building an android application to run in an AOSP project.Right now everything working as expected,Im able to load the android os in to the hardware and on launching the android application it opens and everything seems to be…
2
votes
1 answer

How to set .mk file location path in Android Studio

I am not new to Android development but I am to adding native build. I would like to set the .mk file location manually in Android studio but I couldn't figure it out. I tried this' externalNativeBuild { ndkBuild { path…
The_Martian
  • 3,684
  • 5
  • 33
  • 61
2
votes
1 answer

Separating Android.mk file for each flavor

I’m using Android Studio and Gradle. There are some flavors that having a little differrent views and features. So, for each flavor, I want to switch Android.mk1 file. ex) flavorA -> Android_flavorA.mk flavorB -> Android_flavorB.mk but, in…
2
votes
0 answers

Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing in AOSP Build

Hi all I am using jni code to generate some number in my application. When I install and run it on my device it is working fine as expected with jni code, but when I am creating AOSP build flashing system.img and boot.img in my device getting…
2
votes
0 answers

How to define constant in Android.mk

How do I define a constant to be used in .cpp file in Android.mk? The value of the constant depends on what product is being built.
J.Doe
  • 21
  • 2
2
votes
1 answer

Using libcurl with Android NDK

I'm working on an Android NDK project, and I would like to use the libcurl library to download resources from C++. I am using the NDK's built-in ndk-build tool. During build, I get the following error: Build command failed. Error while executing…
Andrew Farm
  • 178
  • 1
  • 14
2
votes
3 answers

how to create AAR archive file from Android.mk

I am trying to build a custom Android System, and for that I want to use a separate library to contain some custom views. For this I created a Java Library using ... LOCAL_MODULE:= com.zzz.ui include $(BUILD_JAVA_LIBRARY) ... but the downside on…
ungalcrys
  • 5,242
  • 2
  • 39
  • 23
2
votes
4 answers

how to add some third party *.so files in Android.mk?

I am compiling my own app in AOSP,and I want to add my own app in package/app in AOSP. I have some *.sofiles which will be used in my app,but how to write Android.mkabout to use these third party .sofiles?here is my Android.mk: LOCAL_PATH :=…
helloliu
  • 115
  • 3
  • 15
2
votes
2 answers

Unknown package name of class file

I have two libraries that I want to add to AOSP: Azure Storage & Jackson Core When Azure Storage depends on Jackson. Following this instructions, I've added both of them under [MAIN_FOLDER]/external and with the following Android.mk files: For…
shlatchz
  • 1,612
  • 1
  • 18
  • 40
2
votes
1 answer

Is there no Android.mk anymore in android build system?

I last worked on Android application development some while back(on Gingerbread). I came back to it again now. I have inherited a sample hello-jni project into Android studio. But, there is no Android.mk and I see gradle instead. Is it a new build…
Sandeep
  • 18,356
  • 16
  • 68
  • 108
2
votes
0 answers

Android Studio NDK Too many open files in system error

Currently working through compiling the freetype library for android ndk, but I am getting this error: Android.mk:1: Android.mk: Too many open files in system Android.mk:6: /Development/android-sdk-macosx/ndk-bundle/build/core/clear-vars.mk: Too…
iHowell
  • 2,263
  • 1
  • 25
  • 49
2
votes
0 answers

Android NDK OS dependent library

I am using Qcom OMX decoder sample for a project. So I have to use different libraries (.so) for different OS version. these libraries are precompiled for each OS version. and I load them inside Android.mk: Android.MK include…
2
votes
1 answer

Why is ndk-build producing two different libraries, one very large and one smaller?

Why is ndk-build producing two different libraries, one very large and one smaller? And which should I use? The smaller one is written in a libs/armeabi-v7a folder (the build process creates the folders) and the libs folder is at the same level of…
Alyoshak
  • 2,696
  • 10
  • 43
  • 70