Android的工作室进口已编译的C ++库 [英] Android Studio import already compiled C++ Library

查看:149
本文介绍了Android的工作室进口已编译的C ++库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做++库与Visual Studio编译,因为我不得不做了一个C,现在我必须用它为Android项目。

I made a C++ library compiled with Visual studio because I had to done it and now I must use it for an android project.

我不是在采用Android的工作室非常好。如果是普通的Java我会一直不错,但我有我的库导入到项目并使用JNI,使实际的Java code的连接。

I'm not very good at using Android studio. If it was plain Java I would have been fine but I have to import my library into the project and use JNI to make the link with the actual Java code.

我使用的Andr​​oid 1.3.2工作室的gradle和2.6的插件

I'm using Android Studio 1.3.2 and gradle plugin 2.6.

推荐答案

如果我得到你正确地要包含在项目库中。如果是这样,你需要添加库项目的libs文件夹,然后将库文件复制libs文件夹中。

If i am getting you correctly you want to include the library in your project. If it is so you need to add your library in libs folder of your project, then copy the library file in libs folder.

右键单击它并选择添加为库。

Right Click on it and select "Add as Library".

这篇关于Android的工作室进口已编译的C ++库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆