Decompile APK and import in android studio

旧街凉风 提交于 2020-11-30 04:28:48

问题


I Decompile apk with online tool "http://www.decompileandroid.com/" and with "APK studio".

Decompiling is okay, with all .java files, images and xml files. But i want to import this in android studio, as normal project.

When i select decomplied project in android studio, it just show project name, no src files, no XML files, no images..


回答1:


You can also use apktool to decompile and recompile the APK. Use the following steps to decompile

apktool d <apk>

and to compile back

apktool b <apk>

When your APK is decompiled, it is not in the exact source code form. You will see a lot of dex hooks and in general it is not an exact android project that an IDE can recognise and import. You can use any normal editor to read the code and understand to make changes.

Download link: https://ibotpeaches.github.io/Apktool/



来源:https://stackoverflow.com/questions/40298815/decompile-apk-and-import-in-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!