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

Error while building apk (smali) #69

Closed
andrea1984 opened this issue Aug 31, 2023 · 1 comment
Closed

Error while building apk (smali) #69

andrea1984 opened this issue Aug 31, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@andrea1984
Copy link

After decompiling an APK, modifified the smali files, when rebuilding the following error appears:

00.023 I: [BUILD] Scanning XML directory ...
00.053 I: [BUILD] Scanning: app
00.241 I: [BUILD] Initializing android framework ...
00.241 I: [BUILD] Loading android framework for version: 33
00.341 I: [BUILD] Initialized framework: android-33 (UpsideDownCake)
00.342 I: [BUILD] Encoding attrs ...
00.453 I: [BUILD] Encoding values ...                                                                                                                                                                                                            
00.657 I: [BUILD] Scan: package_1/res                                                                                                                                                                                                            
00.692 I: [BUILD] Scanned 1004 files: package_1/res
00.720 I: [BUILD] Add manifest: AndroidManifest.xml
00.721 I: [BUILD] Building dex ...
00.766 I: [BUILD] WARN: Ignore: app/smali/.DS_Store                                                                                                                                                                                              
00.848 I: [BUILD] (1/3) Cached: classes.dex
00.914 I: [BUILD] (2/3) Cached: classes2.dex
00.914 I: [BUILD] (3/3) Smali: classes3.dex

ERROR:
java.io.IOException: Failed to build smali, check the logs
	at com.reandroid.apkeditor.smali.SmaliCompiler.build(SmaliCompiler.java:87)
	at com.reandroid.apkeditor.smali.SmaliCompiler.build(SmaliCompiler.java:65)
	at com.reandroid.apkeditor.smali.SmaliCompiler.buildDexFiles(SmaliCompiler.java:57)
	at com.reandroid.apk.ApkModuleEncoder.encodeDexFiles(ApkModuleEncoder.java:112)
	at com.reandroid.apk.ApkModuleEncoder.scanDirectory(ApkModuleEncoder.java:40)
	at com.reandroid.apkeditor.compile.Builder.buildXml(Builder.java:116)
	at com.reandroid.apkeditor.compile.Builder.run(Builder.java:47)
	at com.reandroid.apkeditor.compile.Builder.execute(Builder.java:176)
	at com.reandroid.apkeditor.Main.execute(Main.java:85)
	at com.reandroid.apkeditor.Main.execute(Main.java:64)
	at com.reandroid.apkeditor.Main.main(Main.java:36)

Don't know where read the log, and why the error occurs.
Regards

@REAndroid REAndroid added the bug Something isn't working label Aug 31, 2023
@REAndroid
Copy link
Owner

Bc of file app/smali/.DS_Store your editor placed in the middle of smali files, anyways it should ignore and continue. Will be fixed next

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants