您能帮我在Android Studio中解决这个错误吗?
can you help me with this error in android studio?
我正在尝试运行一个使用C 模块的项目,我尝试了所有操作,没有任何可行的方法。
错误:执行任务失败':pulseandroid:compiledebugndk'。
错误:您的项目包含C 文件,但没有使用受支持的本机构建系统。 考虑使用稳定的Android Gradle插件使用CMAKE或NDK-BUILD集成: https://developer.android.com/studio/projects/add-native-code.html 或使用实验插件: https://developer.android.com/studio/build/experiment-plugin.html。
1-确保安装ndk
2-将此部分放在build.gradle(Module:app)
上方的CC_1中
sourceSets {
main {
jni.srcDirs = []
}
}
buildTypes{}
相关文章:
- 如何解决错误:SCIP C++中的 SCIP 阶段无效 <10>
- 解决错误:运算符 [] 不匹配
- 开发如何解决错误193:%1不是Dev C 中的Win32应用程序
- 我该如何解决错误,说明创建图形对象没有放置在图形场景中
- 如何解决错误 C2719 在 Visual Studio 2010 C++ 中不存在代码行时
- 如何在C++中使用 ZeroMQ 发送包含数组的结构时解决错误
- 使用strupr和strlwr时如何解决错误"invalid conversion of char to char*"?
- Eigen SparseLU解决错误读取访问冲突,这>m_sup_to_col被0x111011101110112
- 如何解决错误:在Mac上令牌"("之前缺少二进制运算符?
- 如何解决错误:从" int* "到" int "的转换无效
- 如何解决错误PRJ0002:错误结果 -1073741515从"cl.exe"返回?
- 如何解决错误LNK2019:未解析的外部符号
- 解决错误的一般方法:变量周围的堆栈'x'已损坏
- 如何在Xcode中将长双精度转换为字符串格式?或如何解决错误"use of undeclared identifier 'to_string' "
- Eclipse conio.h正在解决错误
- 需要帮助解决错误 C2664
- 如何解决错误LNK2019:未解析的外部符号
- 如何解决错误:LNK2019:未解析的外部符号"public"?
- 无法解决错误LNK2019:未解析的外部符号
- 如何解决错误C2039