AS 如何安装 ASM BYTECODE OUTLINE 插件

问题展示

如果我们强行在 AS 的插件市场上搜索 ASM 由于网络的原因,我们是得不到结果的。如下图所示:

解决方法

第一步:先下载ASM BYTECODE OUTLINE插件

下载下来 文件如下:

第二步:  安装ASM BYTECODE OUTLINE插件

【Settings】–>【Plugins】

点击右上角图标,选择【Install Plugn from Disk】

选择刚下好的 asm-bo-0.3.5.zip 点击 【OK】 即可安装

安装好了,点击【Restart IDE】 生效 

第三步:如何使用ASM BYTECODE OUTLINE插件

重启Android Studio之后,就会有ASM的标志,如下所示

点击即可展开

选择一个java文件,查看其java字节码 ,如下所示

进入java文件编辑区域,鼠标右键弹出菜单项,选择【Show Bytecode outline】

有可能会遇到的报错信息: Error:(12, 25) java: 程序包R不存在

解决方法:build一下项目,生成R文件

然后 再选择【Show Bytecode outline】后面的ASM框就会显示内容,如下所示

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
As an AI language model, I can provide an overview of the ASM bytecode outline. ASM is a popular bytecode engineering library that allows developers to modify Java bytecode at runtime. The bytecode outline includes the following components: 1. Class Structure - This component contains the class name, access flags, superclass, interfaces, fields, and methods of a Java class. 2. Constant Pool - This component is a table of constants used by the bytecode instructions. It includes items such as strings, numbers, and class references. 3. Fields - This component defines the fields of a class, including their access flags, name, type, and value. 4. Methods - This component defines the methods of a class, including their access flags, name, return type, parameters, and bytecode instructions. 5. Instructions - This component defines the bytecode instructions that make up the methods of a class. Each instruction has an opcode and may have operands. 6. Exception Tables - This component defines the exception handling mechanism of a class. It includes information about the types of exceptions that can be thrown by a method and the code that should be executed to handle them. 7. Attributes - This component provides additional information about a class, its fields, or its methods. It includes items such as source file information, debug information, and annotations. Overall, the ASM bytecode outline provides a detailed description of a Java class and its bytecode instructions, allowing developers to modify and optimize their code at runtime.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

super码王

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值