brut.common.BrutException: could not exec command

See original GitHub issue

Original issue 378 created by akbar@nicosoft.co.id on 2012-12-29T19:09:27.000Z:

Hello,

I have use APKMultitools with apktools 1.5.1 and trying to compile the framework-res.apk First I decompile that file without any problem.

When I trying to recompile they have found error like this : W: Could not find sources I: Checking whether resources has changed… I: Building resources… invalid resource directory name: C:\cygwin\home\akbar\FJAPKTools\Working\res/dra wable-ldrtl-mdpi Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce ption: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-ver sion, 17, -F, C:\Users\akbar\AppData\Local\Temp\APKTOOL8607123268457693199.tmp, -x, -S, C:\cygwin\home\akbar\FJAPKTools\Working\res, -M, C:\cygwin\home\akbar\FJ APKTools\Working\AndroidManifest.xml]

W: Could not find sources I: Checking whether resources has changed… I: Building resources… invalid resource directory name: C:\cygwin\home\akbar\FJAPKTools\Working\res/dra wable-ldrtl-mdpi Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce ption: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-ver sion, 17, -F, C:\Users\akbar\AppData\Local\Temp\APKTOOL1757422973888190577.tmp, -x, -S, C:\cygwin\home\akbar\FJAPKTools\Working\res, -M, C:\cygwin\home\akbar\FJ APKTools\Working\AndroidManifest.xml] at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav a:258) W: Could not find sources I: Checking whether resources has changed… I: Building resources… invalid resource directory name: C:\cygwin\home\akbar\FJAPKTools\Working\res/dra wable-ldrtl-mdpi Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce ption: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-ver sion, 17, -F, C:\Users\akbar\AppData\Local\Temp\APKTOOL1037301417103334839.tmp, -x, -S, C:\cygwin\home\akbar\FJAPKTools\Working\res, -M, C:\cygwin\home\akbar\FJ APKTools\Working\AndroidManifest.xml] at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav a:258) at brut.androlib.Androlib.buildResourcesFull(Androlib.java:337) at brut.androlib.Androlib.buildResources(Androlib.java:284) at brut.androlib.Androlib.build(Androlib.java:207) at brut.androlib.Androlib.build(Androlib.java:180) at brut.apktool.Main.cmdBuild(Main.java:209) at brut.apktool.Main.main(Main.java:72) Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd k-version, 17, --target-sdk-version, 17, -F, C:\Users\akbar\AppData\Local\Temp\APKTOOL1037301417103334839.tmp, -x, -S, C:\cygwin\home\akbar\FJAPKTools\Working\res, -M, C:\cygwin\home\akbar\FJAPKTools\Working\AndroidManifest.xml] at brut.util.OS.exec(OS.java:83) at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:256) … 6 more

mv: cannot stat `Working/dist/*.apk’: No such file or directory

Working unsigned apk placed into ‘out’ directory

What version of the product are you using? On what operating system? I have trying use framework-res.apk from Jelly Bean 4.2.1 on Cyanogenmod 10.1 I have running that on cygwin with Java 1.6 and Windows 8 Pro.

Please help me to fix this problem.

Thanks.

Akbar.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
iBotPeachescommented, Mar 18, 2015

Comment #1 originally posted by connor.tumbleson on 2012-12-29T23:59:00.000Z:

ibotpeaches@raganok:~/Downloads/Apktool$ apktool d -f framework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
ibotpeaches@raganok:~/Downloads/Apktool$ apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
ibotpeaches@raganok:~/Downloads/Apktool$ 

no error. Make sure you have updated aapt. MigrationInstructions

0reactions
xmagickxcommented, Jun 12, 2018

Please help me I’m also having same issue in latest kali linux 2018.2. Please tell me how to update aapt. And what do you mean by “aapt. MigrationInstructions” I have got Android 7.0 and got framework-res.apk from adb pull.

Read more comments on GitHub >

github_iconTop Results From Across the Web

brut.common.BrutException: could not exec (exit code = 1)
I: Using Apktool 2.3.3 I: Checking whether sources has changed... I: Smaling smali folder into classes.dex... I: Checking whether resources ...
Read more >
How Fix brut.androlib.AndrolibException: brut.common ...
How Fix brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = -1073741515) ... When you reassemble the ...
Read more >
Apktool – build error – brut.common.BrutException: could not ...
BrutException : could not exec (exit code = 1). 2 Replies. I have an ongoing Android app 'modification' project that I periodically need...
Read more >
iBotPeaches/Apktool - Gitter
using command apktool if framework-res.apk & apktool if twframework-res.apk ... brut.common.BrutException: could not exec (exit code = 1): ...
Read more >
[UTIL][NOV 24, 2022] Apktool - Tool for reverse engineering ...
Main.main(Main.java:84) Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found