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
0
votes
1 answer

How to remove minSdkVersion from AndroidManifest.xml but still be able to build with Make?

I need to be able to build an application with both Gradle (for development) and with Make (for AOSP). Building the app in Android Studio and with Gradle from the command line complains about this line of code:
Karringgton
  • 207
  • 1
  • 3
  • 11
0
votes
1 answer

How to implement androidx work runtime in android.mk?

I am trying to add a library into my Android.mk file but I could not succeed yet. There is the implementation of the library in build.gradle file as below; implementation "androidx.work:work-runtime:2.4.0" In the Android.mk file I used something…
0
votes
1 answer

how android gradle pass build version to android mk

i have a android project which can build v2,v3 version productFlavors { v2 { versionName "${versionMajor}.${versionMinor}.${versionBuild}" } v3 { dexguard = false …
0
votes
1 answer

res folder not loading from .aar library in AOSP

I am working on an AOSP project where I need to use a .aar library with the res folder. I have added .aar reference in Android.mk file but getting below error while opening the app. java.lang.NoSuchFieldError: No static field activity of type I in…
0
votes
0 answers

using prebuilt static/shared libs for my executable: Android makefile

seems this questions is asked couple of times and i have visited all of them and it did not help thus posting here.. objective: making executable using prebuilt libraries(static and shared) staying parallel to my exe code DIR1---------…
0
votes
1 answer

Porting Android Studio Project into AOSP: need Android.mk

All, I am experimenting with this example. https://www.truiton.com/2014/11/bound-service-example-android/ It has a service class (as in "extends service") that instantiates a chronometer and returns the time elapsed from the moment the app was…
vpappano
  • 111
  • 1
  • 11
0
votes
2 answers

How do I add .cpp included files to the dependencies in android.mk?

In our Android project, we have several tens of C and CPP files which we #include through one container file for the build. The container file is listed in LOCAL_SRC_FILES, since that's what's compiled. However, when I edit one of the included…
Ethan Bradford
  • 710
  • 8
  • 10
0
votes
0 answers

Building AppBarLayout from com.google.android.material with Android.mk

I have a system app that I am building using Android.mk. In my app layout, I want to use AppBarLayout from com.google.android.material. Here is the Android.mk: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS :=…
Bazouk55555
  • 557
  • 6
  • 24
0
votes
1 answer

how to build 【openSSL-1.0.2u】 for Android,and if possible, how to merge Android Makefile?

when I use 1.1.1d 's build script, encounter some trouble, and how to generate kind of platorm, such as armv8a,armeabi, armv7a,x86..and so on
wangJin
  • 21
  • 1
0
votes
2 answers

Add androidx.viewpager2 to android.mk file

Trying to add androidx.viewpager2 to android.mk as below: LOCAL_STATIC_ANDROID_LIBRARIES += \ androidx.viewpager2_viewpager2 Not able to build code using MMA command and gives below error. ninja: error: …
0
votes
1 answer

How to add a custom Module-Description Variable in Android.mk?

I want to access a module description variable (a custom variable) while building an android module i.e. an executable or shared-library or prebuilt and based on its value do some extra processing on the executable or shared-lib or prebuilt. Is…
d3xter
  • 51
  • 5
0
votes
1 answer

How can I sign Android application with AOSP certificate

The context of my issue is the following: I build AOSP for our hardware device on Linux Together with the system, I build an APK as a system application Everything works fine in this setup when I flesh it together with system image However, I…
0
votes
1 answer

Dependencies between 2 Android.mk files

I have 2 Android.mk files with the first one building a bunch of libraries and the second one builds another library, but needs the first one to be complete before kicking off it's own build. Is there any way to make sure this happens? This is what…
droid_dev
  • 303
  • 4
  • 15
0
votes
1 answer

What is the equivalent of target_link_libraries in Android.mk

I am trying to compile an android project using Android.mk and need to include the following libraries: native-audio-jni android log OpenSLES. A similar project (https://github.com/googlesamples/android-ndk/tree/master/native-audio), which includes…
0
votes
1 answer

Using AIDL file in other application module

I have one aidl interface and this one is implemented by A app and B app wants to use that aidl. In A app Android.mk LOCAL_SRC_FILES += src/com/a/simple/ISimpleInterface.aidl LOCAL_AIDL_INCLUDES += src/com/a/simple/ISimpleInterface.aidl In B App…
Manukumar
  • 381
  • 1
  • 4
  • 11