berkus / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
1 stars 0 forks source link

build failed with error #237

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
build failed with error:

  <testcase time="0" classname="brut.androlib.BuildAndDecodeTest" name="brut.androlib.BuildAndDecodeTest">
    <error message="brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL5191767104717016850.tmp, -I, /home/fxp/apktool/framework/1.apk, -S, /tmp/BRUT5719622184277422814.tmp/testapp-orig/res, -M, /tmp/BRUT5719622184277422814.tmp/testapp-orig/AndroidManifest.xml]" type="brut.androlib.AndrolibException">brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL5191767104717016850.tmp, -I, /home/fxp/apktool/framework/1.apk, -S, /tmp/BRUT5719622184277422814.tmp/testapp-orig/res, -M, /tmp/BRUT5719622184277422814.tmp/testapp-orig/AndroidManifest.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
        at brut.androlib.Androlib.buildResources(Androlib.java:248)
        at brut.androlib.Androlib.build(Androlib.java:171)
        at brut.androlib.BuildAndDecodeTest.beforeClass(BuildAndDecodeTest.java:47)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, 
/tmp/APKTOOL5191767104717016850.tmp, -I, /home/fxp/apktool/framework/1.apk, -S, 
/tmp/BRUT5719622184277422814.tmp/testapp-orig/res, -M, 
/tmp/BRUT5719622184277422814.tmp/testapp-orig/AndroidManifest.xml]
        at brut.util.OS.exec(OS.java:83)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
        ... 24 more
</error>
  </testcase>

When I try to execute the command I got an error below
ERROR: resource directory '/tmp/BRUT5719622184277422814.tmp/testapp-orig/res' 
does not exist

Original issue reported on code.google.com by fxp007 on 9 Nov 2011 at 7:41

GoogleCodeExporter commented 9 years ago
Not relevant anymore due to Gradle build system.

Original comment by connor.tumbleson on 18 Nov 2012 at 7:50