How to recover Gradle files from an APK file?

I was able to recover Java files and XML files from an APK file using this , but I can not find Gradle scripts (build.gradle, gradle settings, local.properties, etc.)

I created a new project and I imported Java and XML files, but the project is not working, I think, due to Gradle.

Does anyone know how to do this?

+6
source share
3 answers

Try creating your own folders in the studio and try copying the code into the studio ... which should work ... and near gradle files? android studio will build it using gradle ... as far as i know, studio uses gradle build to build application

+2
source

The gradle file does not compile in the APK, it is intended only for a real Android studio project to extract dependencies. There is no way to get gradle file from APK

+27
source

you can not. when you compile apk, it will merge all files into one file. The APK file contains all this program code (for example, .dex files), resources, resources, certificates, and the manifest file.

Therefore, when you decompile it. You cannot submit a Gradle file.

0
source

All Articles