Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 Android Studio 在 .jar 文件中编辑 .class 文件中的代码?当然,我已经尝试过对其进行编辑。由于某种原因,我要编辑的课程是只读的。
Jar文件是.class文件(以及一些其他资源)的压缩档案(压缩文件)。.class文件是编译的.java文件。在正常情况下,您无法编辑已编译的文件,除非您反编译以获得源代码,编辑代码并重新编译。
Jar
.class
.java
反编译是一个繁琐的过程,因此获取源代码是这里的最佳选择。
注意:您可以将.jar文件重命名为文件,.zip并可以使用任何压缩工具打开它,例如winrar或winzip查看内容。
.jar
.zip
winrar
winzip