Eclipse项目转AndroidStudio报错:Your project contains C++ files but it is not using a supported native...

编写不易,如有转载,请声明出处:http://blog.csdn.net/zxc514257857/article/details/76560308

报错内容

Error:Execution failed for task ‘:app:compileDebugNdk’.
 > Error: Your project contains C++ files but it is not using a supported native build system
Consider using CMake or ndk-build integration with the stable Android Gradle plugin:
https://developer.android.com/studio/projects/add-native-code.html
or use the experimental plugin:
http://tools.android.com/tech-docs/new-build-system/gradle-experimental.

这里写图片描述

报错原因

  出现错误后分析得知:AndroidStudio通过Import project导入Eclipse项目时没有将原文件夹中的so包倒入进来(不会自动倒入进来),需要手动复制进来

解决方法

  将so包手动复制到项目中,然后通过两种方式将so文件引入项目:http://blog.csdn.net/zxc514257857/article/details/56534863 ,同步项目之后问题解决

  另有其他情况可能导致此错误出现,解决方法可参考借鉴:http://blog.csdn.net/sweettool/article/details/71436575

----------因本人才疏学浅,如博客或Demo中有错误的地方请大家随意指出,与大家一起讨论,共同进步,谢谢!----------

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

DreamBackTo

感谢各位金主大大(* _ *)

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值