Android.mk seems not to exist

拥有回忆 提交于 2021-01-27 10:58:30

问题


I hope I have not overseen the question was already asked or the question is to stupid...

I have installed Android Studio and Android NDK following the official tutorial at http://developer.android.com/ndk/guides/index.html and I could run the simple hello-jni app on my device. In the tutorial in the following "building section" is told that "The Android.mk file resides in a subdirectory of your project's jni/" but I am absolute sure, that there is no Android.mk in my project -.-

Thanks in advance!


回答1:


Good catch!

The Android.mk file belongs to the old times. Android Studio moves into easier integration of NDK, and you don't need to run ndk-build anymore. Unfortunately, NDK support in Android Studio is still not final; the description at http://tools.android.com/tech-docs/android-ndk-preview is not exactly up-to-date, and another, "experimental" plugin is under development, sa described here: http://tools.android.com/tech-docs/new-build-system/gradle-experimental



来源:https://stackoverflow.com/questions/36630091/android-mk-seems-not-to-exist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!