Android Plugin Issue

17 views
Skip to first unread message

Steve Thompson

unread,
Mar 8, 2010, 12:19:48 PM3/8/10
to simple-b...@googlegroups.com
I was recently able to create an SBT Android project under Linux without any problems.  At the moment I am attempting to set up all of my tools under a Windows 7 box, and when I go to create a simple Android project with SBT, I get the following when I issue the 'sbt update package-debug' after running the generation script:

-------------------------------------------------------------------------------

C:\AndroidBaby>java -Xmx512M -jar "C:\Users\Steve\sbt-launch-0.7.1.jar" update package-debug 
[info] Building project AndroidBaby 0.1 against Scala 2.7.7
[info]    using AndroidBaby with sbt 0.7.1 and Scala 2.7.7
[info] 
[info] == AndroidBaby / update ==
[info] :: retrieving :: androidbaby#androidbaby_2.7.7 [sync]
[info] confs: [compile, runtime, test, provided, system, optional, sources, javadoc]
[info] 0 artifacts copied, 3 already retrieved (0kB/57ms)
[info] == AndroidBaby / update ==
[info] 
[info] == tests / update ==
[info] :: retrieving :: androidbaby#tests_2.7.7 [sync]
[info] confs: [compile, runtime, test, provided, system, optional, sources, javadoc]
[info] 0 artifacts copied, 0 already retrieved (0kB/43ms)
[info] == tests / update ==
[info] 
[info] == AndroidBaby / update ==
[info] == AndroidBaby / update ==
[success] Successful.
[info] 
[info] Total time: 1 s, completed Mar 8, 2010 10:10:06 AM
[info] 
[info] == AndroidBaby / <anonymous> ==
[info] == AndroidBaby / <anonymous> ==
[info] 
[info] == AndroidBaby / aidl ==
[info] == AndroidBaby / aidl ==
[info] 
[info] == AndroidBaby / aapt-generate ==
java.lang.RuntimeException: Could not parse command: (1,3): Escape sequences can only occur in a quoted argument
at scala.Predef$.error(Predef.scala:76)
at sbt.Process$.apply(Process.scala:26)
at sbt.Process$.apply(Process.scala:15)
at sbt.Process$.apply(Process.scala:40)
at AndroidProject$$anonfun$aaptGenerateTask$1.apply(AndroidProject.scala:97)
at AndroidProject$$anonfun$aaptGenerateTask$1.apply(AndroidProject.scala:97)
at sbt.ExecProject$$anonfun$execTask$1.apply(ScalaProject.scala:425)
at sbt.ExecProject$$anonfun$execTask$1.apply(ScalaProject.scala:424)
at sbt.TaskManager$Task.invoke(TaskManager.scala:62)
at sbt.impl.RunTask.doRun$1(RunTask.scala:77)
at sbt.impl.RunTask.runTask(RunTask.scala:85)
at sbt.impl.RunTask.sbt$impl$RunTask$$runIfNotRoot(RunTask.scala:60)
at sbt.impl.RunTask$$anonfun$runTasksExceptRoot$2.apply(RunTask.scala:48)
at sbt.impl.RunTask$$anonfun$runTasksExceptRoot$2.apply(RunTask.scala:48)
at sbt.Distributor$Run$Worker$$anonfun$2.apply(ParallelRunner.scala:131)
at sbt.Distributor$Run$Worker$$anonfun$2.apply(ParallelRunner.scala:131)
at sbt.Control$.trapUnit(Control.scala:19)
at sbt.Distributor$Run$Worker.run(ParallelRunner.scala:131)
[info] == AndroidBaby / aapt-generate ==
[info] 
[info] == tests / <anonymous> ==
[info] == tests / <anonymous> ==
[info] 
[info] == tests / aidl ==
[info] == tests / aidl ==
[info] 
[info] == AndroidBaby / <anonymous> ==
[info] == AndroidBaby / <anonymous> ==
[info] 
[info] == tests / <anonymous> ==
[info] == tests / <anonymous> ==
[info] 
[info] == AndroidBaby / clean-apk ==
[info] == AndroidBaby / clean-apk ==
[info] 
[info] == tests / clean-apk ==
[info] == tests / clean-apk ==
[error] Error running aapt-generate: java.lang.RuntimeException: Could not parse command: (1,3): Escape sequences can only occur in a quoted argument
[info] 
[info] Total time: 0 s, completed Mar 8, 2010 10:10:06 AM
[info] 
[info] Total session time: 1 s, completed Mar 8, 2010 10:10:06 AM
[error] Error during build.

-------------------------------------------------------------------------------

Anyone have any idea what might be going on here?

Let me know and best regards,


Steve Thompson
--

Jan

unread,
Mar 9, 2010, 5:23:19 AM3/9/10
to simple-build-tool

On Mar 8, 6:19 pm, Steve Thompson <thompson4...@gmail.com> wrote:
> I was recently able to create an SBT Android project under Linux without any
> problems.  At the moment I am attempting to set up all of my tools under a
> Windows 7 box, and when I go to create a simple Android project with SBT, I
> get the following when I issue the 'sbt update package-debug' after running
> the generation script:

hi steve,

it could be that the new version of sbt causes problems on windows - i
know for sure that some people used earlier versions of the plugin
successfully on windows. can you run the same command again with debug
enabled? (sbt debug package-debug)


jan

Steve Thompson

unread,
Mar 9, 2010, 11:15:55 AM3/9/10
to simple-b...@googlegroups.com
Jan -
Thanks for your help.

With your suggestions, I went back and tried some older versions of sbt and found that the most recent that I could get to run under Windows for the Android plugin is 0.5.6.  Adding the debug action to the invocation of sbt as you recommended did not produce output that was notably different (if at all) from what I sent yesterday, so I won't post it here.  I think that for the moment this should get me by, although it would of course be great to be able to use Scala 2.8 and I'm not sure how that can be done with 0.5.6.

Thanks again for your help and best regards as always,


Steve Thompson
--


--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To post to this group, send email to simple-b...@googlegroups.com.
To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.


Mark Harrah

unread,
Mar 10, 2010, 8:19:34 AM3/10/10
to simple-b...@googlegroups.com
Jan,

The Process API now uses the command line parser to split up arguments. This parser allows quoting arguments and backslashes to escape quotes. Obviously this is unix-style and doesn't work well with windows. I've reverted this change locally and will push it when I get a chance.

-Mark

Reply all
Reply to author
Forward
0 new messages