Java A/libc:添加mircroblink许可证文件时,tid 27503中的致命信号11(SIGSEGV),代码1,故障地址0x7d400300

Java A/libc:添加mircroblink许可证文件时,tid 27503中的致命信号11(SIGSEGV),代码1,故障地址0x7d400300,java,android,fatal-error,microblink,Java,Android,Fatal Error,Microblink,所以我有一个包含微链接库的项目,我需要在MainActivity中声明它,这里是它的样子 @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ButterKnife.bind(this); /** Set the License from

所以我有一个包含微链接库的项目,我需要在MainActivity中声明它,这里是它的样子

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    ButterKnife.bind(this);


    /** Set the License from the file*/
    MicroblinkSDK.setLicenseFile("this is my license file", this);

    

}
然后我运行程序并得到错误致命信号,但是当我从微链接中删除声明代码时,它可以正常工作。我试着搜索解决方案,结果它说要添加这个

android:hardwareAccelerated="false"
在清单文件中,但失败,错误未更改。有人帮忙就好了

这是调试日志

I/art: Do partial code cache collection, code=26KB, data=29KB
I/art: After code cache collection, code=25KB, data=29KB
Increasing code cache capacity to 128KB
I/art: Compiler allocated 6MB to compile void android.widget.TextView.<init>(android.content.Context, android.util.AttributeSet, int, int)
I/art: Do partial code cache collection, code=61KB, data=53KB
After code cache collection, code=61KB, data=53KB
Increasing code cache capacity to 256KB
D/line:110: --- Implementation #2 with key 0x52
D/line:37: Unlocking BlinkID native library version 4.7.0
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x7d400300 in tid 25983 (ana.wandaflpdev)
Disconnected from the target VM, address: 'localhost:50648', transport: 'socket'
I/art:进行部分代码缓存收集,代码=26KB,数据=29KB
I/art:代码缓存收集后,代码=25KB,数据=29KB
将代码缓存容量增加到128KB
I/art:编译器分配6MB来编译void android.widget.TextView。(android.content.Context,android.util.AttributeSet,int,int)
I/art:执行部分代码缓存收集,代码=61KB,数据=53KB
代码缓存收集后,代码=61KB,数据=53KB
将代码缓存容量增加到256KB
D/行:110:---执行#2,键0x52
D/行:37:解锁BlinkID本机库版本4.7.0
A/libc:tid 25983(ana.wandaflpdev)中的致命信号11(SIGSEGV),代码1,故障地址0x7d400300
已断开与目标VM的连接,地址:'localhost:50648',传输:'socket'

首先,从日志中,我可以看到您正在使用版本4.7,这是2019年2月推出的旧版本BlinkID。 我建议尝试实现最新版本(5.9),您可以在此处下载:

另外,关于许可证密钥方法,建议以扩展
Android应用程序类
的方式实现它,并在
onCreate回调中设置许可证,如下所示:

public class MyApplication extends Application {
    @Override
    public void onCreate() {
        MicroblinkSDK.setLicenseFile("path/to/license/file/within/assets/dir", this);
    }
}
详情如下:


让我知道这是否有帮助。

首先,从日志中,我可以看到您正在使用版本4.7,这是2019年2月发布的旧版本BlinkID。 我建议尝试实现最新版本(5.9),您可以在此处下载:

另外,关于许可证密钥方法,建议以扩展
Android应用程序类
的方式实现它,并在
onCreate回调中设置许可证,如下所示:

public class MyApplication extends Application {
    @Override
    public void onCreate() {
        MicroblinkSDK.setLicenseFile("path/to/license/file/within/assets/dir", this);
    }
}
详情如下:


让我知道这是否有帮助。

当我将其更改为5.9时,错误更改为错误合并清单appCompatFactory,我想我需要将我的android支持库迁移到androidx。是的,您将需要迁移到AndroidX,因为版本5中的BlinkID也迁移到了AndroidX依赖项。我已经完成了迁移,但出现了一个新错误:app:kaptDebugKotlin您知道如何解决吗?@milan当我将其更改为5.9时,错误更改为错误合并清单appCompatFactory,我想我需要将我的android支持库迁移到androidx。是的,你需要迁移到androidx,因为版本5中的BlinkID也迁移到了androidx依赖项。我已经完成了迁移,但我遇到了一个新错误:app:kaptDebugKotlin你知道如何解决吗?@Milan