Android Studio 安装了插件ASM Bytecode Viewer,准备学学ASM相关知识,为Android自动化埋点原理做技术储备。
ASM Bytecode Viewer使用步骤:
1、Android Studio 安装ASM Bytecode Viewer插件,安装完成后重启Android Studio,
2、然后选中MainActivity,右键选择ASM Bytecode Viewer:
结果就出现了 couldn’t generate bytecode view, no .class file found的错误,
然后查询了一翻资料之后,找到了ASM Bytecode Viewer的正确使用方式,成功运行APP后,在app/build/intermediates/javac
文件夹下有对应的class文件,选中里面的class文件,然后右键选中ASM Bytecode Viewer即可: