brut.androlib.AndrolibException

brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 7574436, --version-name, 7.5.74 (1997312-436), -F, /data/data/per.pqy.apktool/APKTOOL6615723638820564126.tmp, -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /sdcard/Lab/com.google.android.gms-v7574436_src/res, -M, /sdcard/Lab/com.google.android.gms-v7574436_src/AndroidManifest.xml]

Samebug tips2

You might be using the wrong way to add commands to the command line. Try using commandDownloader.add("command");


rafaelrafael

If you're trying to make a splash screen, check this tutorial: https://goo.gl/zQyCYe


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web2155

  • via Unknown by Unknown author,
  • via GitHub by kat0072
    ,
  • Stack trace

    • brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 7574436, --version-name, 7.5.74 (1997312-436), -F, /data/data/per.pqy.apktool/APKTOOL6615723638820564126.tmp, -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /sdcard/Lab/com.google.android.gms-v7574436_src/res, -M, /sdcard/Lab/com.google.android.gms-v7574436_src/AndroidManifest.xml] at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458) at brut.androlib.Androlib.buildResources(Androlib.java:396) at brut.androlib.Androlib.build(Androlib.java:285) at brut.androlib.Androlib.build(Androlib.java:256) at brut.apktool.Main.cmdBuild(Main.java:225) at brut.apktool.Main.main(Main.java:84) Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 7574436, --version-name, 7.5.74 (1997312-436), -F, /data/data/per.pqy.apktool/APKTOOL6615723638820564126.tmp, -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /sdcard/Lab/com.google.android.gms-v7574436_src/res, -M, /sdcard/Lab/com.google.android.gms-v7574436_src/AndroidManifest.xml] at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419) at brut.androlib.Androlib.buildResourcesFull(Androlib.java:444) ... 5 more Caused by: brut.common.BrutException: could not exec command: [aapt, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 7574436, --version-name, 7.5.74 (1997312-436), -F, /data/data/per.pqy.apktool/APKTOOL6615723638820564126.tmp, -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /sdcard/Lab/com.google.android.gms-v7574436_src/res, -M, /sdcard/Lab/com.google.android.gms-v7574436_src/AndroidManifest.xml] at brut.util.OS.exec(OS.java:93) at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:413) ... 6 more Caused by: java.io.IOException: Cannot run program "aapt": error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047) at java.lang.Runtime.exec(Runtime.java:617) at java.lang.Runtime.exec(Runtime.java:485) at brut.util.OS.exec(OS.java:84) ... 7 more Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:186) at java.lang.ProcessImpl.start(ProcessImpl.java:130) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028) ... 10 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    serious2monkeysserious2monkeys
    Once,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    125 more bugmates