- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想尝试将多生物识别示例 android(来自 https://www.neurotechnology.com/download.html#megamatcher_verifinger_verilook_verieye_sdk_trial )合并到我的项目中。
我已经将源代码复制到我的项目中,并添加所有 gradle 依赖项。构建apk时,出现此错误:
java.lang.UnsatisfiedLinkError: Can't obtain class com.sun.jna.Pointer
当我调试错误时,错误发生在尝试调用此代码时:
NLicenseManager.setTrialMode(LicensingPreferencesFragment.isUseTrial(this));
如果我评论该代码,同样的错误仍然出现,但在此代码中:
NCore.setContext(this);
这是我的 gradle 实现库:
//for my project
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:mediarouter-v7:27.1.1'
implementation 'org.greenrobot:greendao:3.2.2'
implementation 'com.github.yuweiguocn:GreenDaoUpgradeHelper:v2.0.2'
implementation 'com.jakewharton:butterknife:7.0.1'
implementation 'com.google.firebase:firebase-appindexing:17.1.0'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.journeyapps:zxing-android-embedded:3.6.0'
implementation 'com.google.zxing:core:3.3.2'
implementation 'com.github.dmytrodanylyk.android-process-button:library:1.0.4'
implementation files('libs/volley.jar')
implementation files('libs/httpclient-4.5.2.jar')
implementation files('libs/httpcore-4.4.4.jar')
implementation files('libs/httpmime-4.5.2.jar')
implementation files('libs/commons-io-2.6.jar')
implementation 'com.hrules:horizontalnumberpicker:1.1.1'
implementation 'com.afollestad.material-dialogs:commons:0.9.6.0'
implementation 'com.github.cdflynn:checkview:v1.1'
api 'io.jsonwebtoken:jjwt-api:0.10.5'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.10.5'
runtimeOnly('io.jsonwebtoken:jjwt-orgjson:0.10.5') {
exclude group: 'org.json', module: 'json'
}
// for megamatcher multiobiometric
implementation ":neurotec-biometrics-client-android"
implementation ":neurotec-devices-fscanners-nitgen-android"
implementation ":neurotec-devices-fscanners-aratek-android"
implementation ":neurotec-devices-fscanners-aratek-trustfinger-android"
implementation ":neurotec-devices-fscanners-suprema-biomini-android"
implementation ":neurotec-devices-fscanners-bluefin-android"
implementation ":neurotec-devices-multimodal-credenceid-android"
implementation ":neurotec-devices-fscanners-digitalpersona-uareu-android"
implementation ":neurotec-devices-fscanners-secugen-android"
implementation ":neurotec-devices-fscanners-futronic-android"
implementation ":neurotec-devices-fscanners-integratedbiometrics-android"
implementation ":neurotec-devices-fscanners-smufsbio-android"
implementation ":neurotec-devices-fscanners-startek-android"
implementation ":neurotec-devices-fscanners-nextbiometrics-android"
implementation ":neurotec-devices-fscanners-greenbit-android"
implementation ":neurotec-devices-fscanners-zkteco-android"
implementation ":neurotec-devices-irisscanners-iritech-irishield-android"
implementation ":neurotec-devices-irisscanners-mantra-android"
implementation ":neurotec-devices-media-android"
implementation ":neurotec-biometrics-android"
implementation ":neurotec-devices-android"
implementation(name:'neurotec-biometrics-gui-android', ext:'aar')
implementation project(":samples-utils")
//inside samples-utils
api ":neurotec-core-android"
api ":neurotec-licensing-android"
api ":neurotec-gui-android"
api ":neurotec-media-android"
api ":neurotec-media-processing-android"
api ":jna"
api "com.android.support:support-v4:27.1.1"
api(name:'neurotec-licensing-gui-android', ext:'aar')
我已经检查过我已经在 gradle 中调用了 jna jar 的实现,有人可以帮忙吗?
最佳答案
最后,有一天我发现问题是,如果我们的应用程序使用ShrinkResources true和minifyEnabled true,我们应该在我们的proguard规则中为megamatcher使用的所有库添加一些异常(exception),如下所示:
-keep class com.sun.jna.** { *; }
-keep class org.libusb.** { *; }
-keep class com.neurotec.** { *; }
-keep class cn.com.aratek.** { *; }
-keep class com.aratek.** { *; }
-keep class com.cognaxon.** { *; }
-keep class com.digitalpersona.uareu.** { *; }
-keep class com.futronictech.** { *; }
-keep class com.greenbit.** { *; }
-keep class com.integratedbiometrics.** { *; }
-keep class com.nextbiometrics.fingerprint.NXTSensor.** { *; }
-keep class com.SecuGen.** { *; }
-keep class com.smufsbio.** { *; }
-keep class com.startek.fp300u.** { *; }
-keep class com.android.biomini.** { *; }
-keep class com.suprema.** { *; }
-keep class com.zkteco.** { *; }
-keep class com.zkteco.** { *; }
-keep class com.iritech.** { *; }
-keep class com.mantra.mis100.** { *; }
-keep class com.credenceid.** { *; }
-keep class com.gstreamer.** { *; }
关于java.lang.UnsatisfiedLinkError : Can't obtain class com. sun.jna.Pointer(神经技术Megamatcher SDK),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57005617/
原谅那个疯狂的标题... 我试图理解面向对象编程中继承与接口(interface)的概念。所以我试图将它与我已经知道的东西联系起来,这就是 CSS。 在 CSS 中,您可以选择在允许元素“继承”样式的
我有一个 C 函数,它返回一个表示二进制数据的 unsigned char*。我在文档中注意到 SWIG 有一个很好的类型映射来处理二进制数据作为 C 函数的输入,但是当 C 函数返回二进制数据及其无
过去遇到过几次类似的问题,想知道用什么语言(方法)来解决类似的问题(我是J2EE/java开发人员): 问题:在一组可能的单词中,根据给定的规则(假设单词可以是 A 和 X 的组合,并且始终以 X 开
这个问题不太可能帮助任何 future 的访客;它只与一个小地理区域、一个特定时刻或一个非常狭窄的情况相关,而这些情况通常不适用于互联网的全局受众。如需帮助使这个问题更广泛地适用,visit the
如果我们已经开发了自己的ORM框架并且该框架在过去的几年中运行良好,那么为什么我们要为即将到来的软件项目学习和使用全新的.net技术,例如LINQ或Entity Framework或NHibernat
即使听起来很奇怪,我相信每个人在处理具有大量自定义组件的大型应用程序时都遇到过此类问题。某个地方生成了 AV,但应用程序仍在继续执行,稍后会出现错误。我不是在谈论多线程应用程序。只是关于通用的单线程应
我正在设计一个新项目,我正在尝试找出将数据/事件从服务器应用程序推送到客户端应用程序(即 WPF 应用程序)的方法。 我知道的两个是: 发布/订阅(即 NServiceBus) Full Duplex
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 5年前关闭。 Improve thi
这个问题在这里已经有了答案: C# .NET: How to check if we're running on battery? (6 个答案) 关闭 9 年前。 我发现许多 API 可以帮助确定
没有 JQUERY!我有一个下拉列表,用户可以在其中选择日期、月份和年份。我创建以下代码并使用 setFullYear 将这些值传递到变量中。有时我还会向这个变量添加天数,这就是变量 ev_num 的
我有一个控件,我想在表单和打印时以不同的方式绘制它。这是我做的方式: private void printDocument1_PrintPage(object sender, System.Drawi
我正在尝试确定从扫描文档中提取手写数据的最佳方法。 手写数据位于特定的方框区域。我生成了文档的数字版本,因此我知道方框区域的坐标,并且如果需要还可以生成文档的其他变体(即被屏蔽以使字段更容易提取的版本
背景 对于基于音乐的问题,我深表歉意,但细节并没有那么重要。我正在按顺序浏览一个 midi 文件,我正在寻找一种有效的方法来查找数据中的模式以找到称为连音符的东西。见下图: 连音符上方有数字(3 或
经验丰富的 Java 新手,寻求您的智慧: 如果无法确保在对象超出范围时执行某些特定的 block 代码,那么还有哪些其他方法可以提供相同的功能?(看起来 finalize 显然不是那个意思) 一个典
我正在玩一个小的油漆应用程序。我想创建不同的画笔提示(不仅仅是简单的线条)。基本思想是沿着鼠标移动重复(冲压)画笔 Nib 。因为鼠标移动不会为鼠标移动的每个像素分派(dispatch)所需的事件。我
我正在制作时间表应用程序。重要的类是: Period id: int clazz: Clazz SubjectTeacher subject: String teac
关闭。这个问题需要更多 focused .它目前不接受答案。 想要改进这个问题吗? 更新问题,使其只关注一个问题 editing this post . 关闭 4 年前。 Improve this q
我有一个奇怪的任务要解决。我们有一个小型视频窗口(如 300x200 像素,256 色调色板)和 44kHz 2ch 声音在服务器上播放。我们需要将此流视频发送给一些客户端(1,2.. 最多 10 个
我很确定我在这里遗漏了一些东西,因为我对 Shapeless 还很陌生并且我正在学习,但是 Aux 技术实际上什么时候开始需要 ?我看到它是用来暴露一个 type通过将其提升为另一个“同伴”的签名来声
微软有什么理由仍然坚持使用 COM 技术(Office 组件仍然是 COM)……当所有用 COM 完成的事情都可以用 .Net 以更好、更有效的方式完成时 最佳答案 因为它需要一个 长完全重写Offi
我是一名优秀的程序员,十分优秀!