鹏程艾伯特
鹏程艾伯特
debug跑的没有混淆啊,去掉matrix是正常的
我的地图崩溃前,gradle-plugin也会报错: [W][Matrix.Trace] [getMethodFromBaseMethod] not exist!E:\battery-station-android\batterystation\build\matrix_output\Debug.methodmap [I][Matrix.Trace] [ParseMappingTask#run] cost:1ms, black size:2, collect 0 method from E:\battery-station-android\batterystation\build/matrix_output/Debug.methodmap java.lang.NullPointerException at java.base/java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011) at java.base/java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006) at com.tencent.matrix.trace.MethodCollector$TraceClassAdapter.visit(MethodCollector.java:285) at org.objectweb.asm.ClassReader.accept(ClassReader.java:546) at org.objectweb.asm.ClassReader.accept(ClassReader.java:401) at com.tencent.matrix.trace.MethodCollector$CollectJarTask.run(MethodCollector.java:172) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)...
已确定是ASM字节码处理过程中JSR/RET are not supported with computeFrames option 不支持导致的。https://stackoverflow.com/questions/19381417/compile-error-jsr-ret-are-not-supported-with-computeframes-option 尝试了此修复方案无用!!
问题定位思路:将报错的jar包后缀名改为.zip查看,确实是amap相关的jar包。https://issues.apache.org/jira/browse/ARIES-1219?jql=text%20~%20%22JSR%2FRET%22 此链接有介绍此问题形成的原因