从.aar文件Android中提取代码 [英] Extract code from .aar file Android

查看:434
本文介绍了从.aar文件Android中提取代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从aar文件中提取代码.[偶然地,我的主项目在另一个系统上,我的邮件中只能访问aar文件]

How do I extract code from aar file.[Accidentally my main project is on another system can't access only have aar file on my mail]

我需要从aar文件中提取JNI代码.我试图将扩展名更改为.jar,但仅将其提取为.class,有人知道如何提取该扩展名吗?

I need to extract the JNI code from aar file. I tried to change the extension to .jar but its extract .class only, Do anybody know how to extract that aar thing.

推荐答案

只需按照以下步骤从.aar文件中提取代码 例如:libraryproject.aar

Just follow the steps to extract code from .aar file Ex: libraryproject.aar

1.将库文件扩展名重命名为.jar" ex.libraryproject.jar

1.Rename the library file extension to ".jar" ex.libraryproject.jar

2.解压缩文件夹中的文件.

2.Extract the file in a folder.

3.Folder将具有android库项目中使用的 AndroidManifest 资源库文件.

3.Folder will have AndroidManifest,resources and library files used in the android library project.

4.Folder还具有 classes.jar 文件,该文件将包含库中的所有类.

4.Folder also have classes.jar file which will have all the classes in the library.

5.要打开 classes.jar 文件,请使用 jd-gui工具.

5.To open classes.jar file use jd-gui tool.

6.在jd-gui工具的文件->打开文件->浏览中,选择 classes.jar 文件.

6.In jd-gui tool File ->Open File->browse and select classes.jar file.

晚些时候,但对新观众会有帮助.

Late, but will help new viewers.

这篇关于从.aar文件Android中提取代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆