Android.mk似乎不存在 [英] Android.mk seems not to exist

查看:129
本文介绍了Android.mk似乎不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望我没有监督已经提出的问题,或者问题是愚蠢的...

我已按照 http://developer上的官方教程安装了Android Studio和Android NDK.android.com/ndk/guides/index.html ,我可以在设备上运行简单的hello-jni应用.在下面的构建"部分的教程中,被告知"Android.mk文件位于您项目的jni/的子目录中",但是我绝对确定,我的项目中没有Android.mk -.-

提前谢谢!

解决方案

好收获!

Android.mk文件属于旧时代.Android Studio简化了NDK的集成,并且您不再需要运行 ndk-build .不幸的是,Android Studio中对NDK的支持仍然不是最终的. http://tools.android.com/tech-docs/android-ndk-preview 并不是最新的,另外一个实验性"插件正在开发中,请参见以下说明: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!

解决方案

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

这篇关于Android.mk似乎不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆