Android:使用 R.java 从 APK 文件中获取源代码 [英] Android: Getting source code from an APK file with R.java

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

问题描述

我在这里使用了指令:有没有办法从 APK 文件中获取源代码?真的很好.我得到了丢失项目的几乎所有内容,但没有 R.java 文件.需要将项目导入 eclipse.如何从 apk 文件中提取此文件?我在哪里可以找到它?

I used the instruction here : Is there a way to get the source code from an APK file? It was really good. I got almost everything of my lost project but no R.java file. It is nececery to import the project to eclipse. How can I extract this file from apk file? Where can I find it?

tnx.

推荐答案

R.java 是在 Eclipse 和其他 IDE 上自动创建的.从我的主要活动中删除表示 import R.java 的行通常可以帮助我的 IDE 识别它不存在,并在您尝试运行程序时重新创建它.如果这不起作用,请尝试 Project、Clean... 并再次尝试运行它.

R.java is created automatically on Eclipse and other IDEs. Removing the line from my main activity that says import R.java usually helps my IDE recognize that it's not there, and it recreates it when you try to run the program. If that doesn't work, try Project, Clean... and try running it again.

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

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