Card.IO在Android上摇篮 [英] Card.IO on Android with Gradle
问题描述
我一直在使用Card.IO一段时间。最近我换我的构建系统摇篮,我注意到扫描仪无法工作了。取而代之的是摄像头雨后春笋般冒出来的,我得到一个手工录入表单。我认为这事做与不被包含在构建中的.so文件,但我不知道如何解决这个问题。
I've been using Card.IO for a while. Recently I switched my build system to Gradle and I noticed the scanner does not work anymore. Instead of the camera popping up, I get a manual entry form instead. I assume this has something to do with the .so files not being included in the build, but I have no idea how to fix this.
我已经尝试了一些东西,在的build.gradle文件,比如包括*。所以'明确并包括子目录。但似乎没有得到扫描仪重新开始工作。
I've tried some things in the build.gradle file, such as including '*.so' explicitly and including the subdirectories. But nothing seems to get the scanner back to work.
推荐答案
的摇篮Android插件支持这个现在开始,版本0.7.2。所有你需要做的就是把本机库中的src / main / jniLibs
The Gradle Android plugin supports this now, starting version 0.7.2. All you need to do is put the native libraries in src/main/jniLibs
来源: https://github.com/card- IO / card.io-Android的SDK /问题/ 9 和 HTTP ://tools.android.com/tech-docs/new-build-system
这篇关于Card.IO在Android上摇篮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!