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 有关啊

  • 2018-01-01 10:50:49

    仿QQ长按弹出功能菜单

    android app普遍常用的弹出上下文菜单是列表式的。QQ列表,在上方弹出冒泡效果菜单,如图