所以我有一个项目,其中包含一个 microblink 库,我需要在 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);
}
然后我运行程序并收到错误致命信号,但是当我从 microblink 中删除声明代码时,它可以照常工作。我已经尝试搜索解决方案,它说要添加这个
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'