Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gui] java.lang.IllegalStateException: Could not find AndroidManifest.xml #2426

Closed
fparrel opened this issue Mar 4, 2025 · 2 comments
Closed

Comments

@fparrel
Copy link

fparrel commented Mar 4, 2025

Opening a jadx project on jadx-gui then chose File/Save as gradle project
AndroidManifest.xml is present along with smali files
IMPORTANT! If the error occurs with a specific APK file please attach or provide link to apk file! -> impossible forbiden by github

  • Jadx version: 1.5.1
  • Java version: 11.0.26
  • Java VM: Ubuntu OpenJDK 64-Bit Server VM
  • Platform: Linux (5.15.0-134-generic amd64)
  • Max heap size: 11044 MB
  • Program args: -Xms128M -XX:MaxRAMPercentage=70.0 -Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true -Djava.util.Arrays.useLegacyMergeSort=true -Djdk.util.zip.disableZip64ExtraFieldValidation=true -XX:+IgnoreUnrecognizedVMOptions --add-opens=java.base/java.lang=ALL-UNNAMED -Dsun.java2d.noddraw=true -Dsun.java2d.d3d=false -Dsun.java2d.ddforcevram=true -Dsun.java2d.ddblit=false -Dswing.useflipBufferStrategy=True
java.lang.IllegalStateException: Could not find AndroidManifest.xml
	at jadx.core.export.ExportGradleTask.run(ExportGradleTask.java:40)
	at jadx.core.utils.tasks.TaskExecutor.wrapTask(TaskExecutor.java:166)
	at jadx.core.utils.tasks.TaskExecutor.runStages(TaskExecutor.java:142)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)

@fparrel fparrel changed the title java.lang.IllegalStateException: Could not find AndroidManifest.xml [gui] java.lang.IllegalStateException: Could not find AndroidManifest.xml Mar 4, 2025
@jpstotz
Copy link
Collaborator

jpstotz commented Mar 5, 2025

Most likely you have not loaded an APK file into Jadx-GUI, but the function you use is only for APKs.

For a workaround please see #2345

@fparrel
Copy link
Author

fparrel commented Mar 7, 2025

Thanks! Indeed, I created a project from a directory containing output of apktool.
Creating the project directly from .apk works fine

@fparrel fparrel closed this as completed Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants