Android Studio Project debug library show source code does not match the bytecode
2016-12-21 19:45
1276 查看
最近接手了一些新的工程,里面用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
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
相关文章推荐
- IDEA查看源码时提示:Library source does not match the bytecode for class的问题分析
- IDEA查看源码时提示:Library source does not match the bytecode for class的问题分析
- debug显示 'Source code does not match the bytecode' 解决方法
- source does not match the bytecode for class问题解决
- Source code does not match the bytecode
- sources code does not match the bytecode
- Eclipse下开发Android报错(java compiler level does not match the version of the installed java project)
- Error: Java compiler level does not match the version of the installed Java project facet.
- java compiler level does not match the version of the installed java project facet
- Java compiler level does not match the version of the installed Java project facet.
- Java compiler level does not match the version of the installed Java project facet.
- Java compiler level does not match the version of the installed Java project fac
- Java compiler level does not match the version of the installed Java project facet
- Java compiler level does not match the version of the installed Java project fac
- Java compiler level does not match the version of the installed Java project facet.
- Java compiler level does not match the version of the installed Java project
- Java compiler level does not match the version of the installed Java project
- Java compiler level does not match the version of the installed Java project facet
- Java compiler level does not match the version of the installed Java project facet
- Java compiler level does not match the version of the installed Java project facet.