What is Android.mk file

The project I'm trying to create has one of them, and I want to know exactly what tools are needed to create the project. I see some link to NDK when I search, but is this the only tool? It looks like this file is creating a jar file, I don't see a link to the native code (C ++)

+7
source share
3 answers

Android.mk files in the SDK samples must correctly include the samples in the SDK assembly (if you are actually going to this area). They do not affect what you do when you use the sample. For OP, I'm not sure if you are using a sample project, but if so, you can ignore this file.

+4
source

The best answer to your question is to read this article:

Android.mk file syntax specification

https://android.googlesource.com/platform/ndk/+/4e159d95ebf23b5f72bb707b0cb1518ef96b3d03/docs/ANDROID-MK.TXT

after reading you can understand the idea of ​​the android.mk file.

amuses

+4
source

I saw that some of the Android code examples come with the Android.mk file for no apparent reason - perhaps this is automatically generated when the project is created if you have NDK installed or something like that. Android.mk seems to be specific to NDK.

So, if in fact there is no embedded code, then if you want to build from the command line, make sure that you have JDK, Ant and Android SDK installed.

Then take a look at

http://developer.android.com/guide/developing/projects/projects-cmdline.html#UpdatingAProject

After starting the β€œandroid project project ...” you hopefully can run β€œant debug” to create the application.

0
source

All Articles