JNI问题

Error:(12, 0) Error: NDK integration is deprecated in the current plugin.

Consider trying the new experimental plugin.

For details, see http://tools.android.com/tech-docs/new-build-system/gradle-experimental.

Set "android.useDeprecatedNdk=true" in gradle.properties to continue using the current NDK integration.

解决如上问题只需如下两步:

1. 添加 gradle.properties 文件到工程的根目录下。

android.useDeprecatedNdk=true添入工程根目录下的新建gradle.properties文件中

2. 添加 android.useDeprecatedNdk=true 到该 gradle.properties 文件中。

gradle.properties 文件内容仅此如下一句:

android.useDeprecatedNdk=true

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 173,821评论 25 709
  • afinalAfinal是一个android的ioc,orm框架 https://github.com/yangf...
    passiontim阅读 15,596评论 2 45
  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 135,067评论 19 139
  • 函数: 参数: 在函数定义与调用时的形参个数与实参个数可以不等。 如果实参个数小于形参个数,则函数体调用执行时,未...
    UL_葡萄丸子少女阅读 468评论 0 0
  • 苏尽北回到教室,此时上课铃声也响了。 这节课是物理课,苏尽北哪门课都偏,唯独这门课他是学的最好的,每回物理考试成绩...
    夜闻绍寒阅读 311评论 3 5