android bugly 错误分析,使用 Robolectric 单元测试运行时 bugly 初始化异常

异常类型

使用 Robolectric 单元测试运行时 bugly 初始化异常

手机型号

直接在 JVM 上运行的,没在手机运行

手机系统版本

同上

Tinker版本

没用 Tinker,gradle 依赖:

compile 'com.tencent.bugly:nativecrashreport:latest.release'

compile 'com.tencent.bugly:crashreport_upgrade:latest.release'

gradle版本

2.3.0

系统

Windows

堆栈/日志

java.lang.VerifyError: Expecting a stackmap frame at branch target 74

Exception Details:

Location:

com/tencent/bugly/a.onDbDowngrade(Landroid/database/sqlite/SQLiteDatabase;II)V @0: aload_0

Reason:

Expected stackmap frame at this location.

Reason:

Expected stackmap frame at this location.

Bytecode:

0x0000000: 2ab6 0009 c700 04b1 2ab6 0009 3a04 1904

Exception Handler Table:

bci [0, 7] => handler: 74

bci [8, 71] => handler: 74

at com.lerdong.dm78.base.BaseApplication.initBugly(BaseApplication.java:88)

at com.lerdong.dm78.base.BaseApplication.onCreate(BaseApplication.java:61)

复现路径

@RunWith(MyRobolectricTestRunner.class)

@config(constants = BuildConfig.class, sdk = 21,buildDir = "app/build")

public class AssembleDetailPresenterTest extends BaseTest {

@test

public void getListData() throws Exception {

}

}

public class BaseApplication extends MobApplication {

@override

public void onCreate() {

initBugly();

}

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值