changpinggou / droiddraw

Automatically exported from code.google.com/p/droiddraw
1 stars 3 forks source link

SDK tools directory fixed to /Users/bburns/devel/android-sdk_m5-rc15_mac-x86/tools #232

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
droiddraw tries to run compilation tools from a fixed directory which cannot be 
changed to the correct SDK directory, then reports success

What steps will reproduce the problem?
1. File->Save
2. File->Export to device

What is the expected output? What do you see instead?
Expected: Successful compilation on the command line and installation to the 
device.
Instead:
  On the device: Nothing
  In DroidDraw : Layout successfully installed
  On the command line:
BUILD FAILED
  /tmp/activity/build.xml:50: Execute failed: java.io.IOException: Cannot run program "/Users/bburns/devel/android-sdk_m5-rc15_mac-x86/tools/aapt": java.io.IOException: error=2, No such file or directory
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)  
    at java.lang.Runtime.exec(Runtime.java:593)
    at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:827)
    at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:445)
    at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:459)
    at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:635)
    at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:676)
    at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:502)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:390)
    at org.apache.tools.ant.Target.performTasks(Target.java:411)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
    at org.apache.tools.ant.Main.runBuild(Main.java:801)
    at org.apache.tools.ant.Main.startAnt(Main.java:218)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or 
directory
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
    at java.lang.ProcessImpl.start(ProcessImpl.java:65)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
    ... 23 more

Total time: 0 seconds
Buildfile: /tmp/activity/build.xml

dirs:

resource-src:
     [echo] Generating R.java...

What version of the product are you using? On what operating system?
r1b19 on GNU/Linux (Ubuntu Natty AMD64)

Original issue reported on code.google.com by jamesdon...@gmail.com on 13 Dec 2011 at 1:48

GoogleCodeExporter commented 9 years ago
Everything is exactly the same for r1b20

Original comment by jamesdon...@gmail.com on 13 Dec 2011 at 1:54

GoogleCodeExporter commented 9 years ago
Hi,

there was a solution in the past. Maybe it still work around the current 
problem.

https://code.google.com/p/droiddraw/issues/detail?id=165#hc3

cheers
Frank

Original comment by Dietrich.Frank@gmail.com on 14 Dec 2011 at 12:08

GoogleCodeExporter commented 9 years ago

Original comment by brendan....@gmail.com on 28 Dec 2011 at 6:18