如何在android studio项目中添加JNI库? [英] How to add JNI Libraries in android studio project?

查看:125
本文介绍了如何在android studio项目中添加JNI库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我获取了一些示例代码来创建 WebCam Android应用程序.当我导入项目时,android studio的gradle构建出错,并且我无法运行该应用程序.指导我添加JNI库以在我的android studio应用程序中工作的步骤.

I was fetched some sample code to create WebCam android application. When i import the project, android studio's gradle building got error and i can't able to run the application . Guide me the steps to add JNI Library to work in my android studio application.

我从此链接

提前谢谢!

推荐答案

Jni文件应该放在android studio的jni文件夹中.

Jni Files are suppose to be placed at jni folder in android studio.

下面是android studio中的项目结构

Below is project structure in android studio

这篇关于如何在android studio项目中添加JNI库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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