Android Studio Project debug library show source code does not match the bytecode

最近接手了一些新的工程,里面用android studio调试library。在调试的时候 会发现调用某些接口的时候 ide 提示:

source code does not match the bytecode

但是看library源码的确是匹配的,google了好久也没有结论,WTF!!!!!!

不但如此Debugger下的Frames堆栈对应的接口也是不对的,我就开始怀疑是不是代码混淆的问题。但是去看gradle文件debug模式下的确没有对library进行混淆。

后来在网上查
BuildConfig.DEBUG always false when building library projects with gradle的问题时候根据android开发工程在问题中这样解释的:
No. this means the library used by the project is always the release version of the library. This may or may not be a problem to you.

ok这样就解释了 困扰我的问题!!!在调试的时候去掉gradle中对release的混淆就好了。

https://code.google.com/p/android/issues/detail?id=52962

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值