Your project contains C++ files but it is not using a supported native build system.

2018-01-16 19:26:41

错误信息

Error:Execution failed for task ':dmo:compileDebugNdk'.

> Error: Your project contains C++ files but it is not using a supported native build system.

  Consider using CMake or ndk-build integration. For more information, go to:

   https://d.android.com/r/studio-ui/add-native-code.html

  Alternatively, you can use the experimental plugin:

   https://developer.android.com/r/tools/experimental-plugin.html


错误解决办法,从网上搜索的,不知道为什么会有这样的解决方案,

sourceSets { main { jni.srcDirs = [] } }

正确解决方案

sourceSets { main { jniLibs.srcDirs = [] } }

这样就可以运行了,是不是跟我再main下面建的文件夹就是jniLibs 有关啊

  • 2017-11-19 00:17:51

    Java如何获取Date的“昨天”与“明天”示例代码

    最近在做项目的时候用到Date和Calendar比较多,而且用到的方式也比较全,突然想到一个问题,Java如何获取Date的"昨天"与"明天",也就是前一天和后一天呢?思考后写出了方法,想着万一以后用到,就总结出来,也方便有需要的朋友们参考借鉴,下面来一起看看吧。

  • 2017-11-23 02:00:51

    js 分页插件twbs-pagination

    ​cdn地址 http://www.bootcdn.cn/twbs-pagination/ 官网地址 可以在cdn地址上面查看到

  • 2017-11-28 14:53:05

    Vagrant 实战

    Vagrant 是一个可创建轻量级、高复用性和便于移植的开发环境的工具。 此文章是作者折腾vagrant的笔记, 希望大家看后,不再去网上搜罗资料, 能顺利搭建vagrant环境。vagrant更新较快, 还建议大家以官网为主。Vagrant官网

  • 2017-11-28 14:55:13

    使用 Vagrant 打造跨平台开发环境

    Vagrant 是一款用来构建虚拟开发环境的工具,非常适合 php/python/ruby/java 这类语言开发 web 应用,“代码在我机子上运行没有问题”这种说辞将成为历史。