jberkel / android-plugin

An sbt plugin for Android development in Scala
https://groups.google.com/forum/#!forum/scala-on-android
Other
476 stars 113 forks source link

aapt-generate reports success even when aapt fails #125

Closed pimlott closed 12 years ago

pimlott commented 12 years ago

In one of my builds, the aapt-generate step reports:

.../src/main/res/layout/main.xml:19: error: Error: No resource found that matches the given name (at 'hint' with value '@string/amount').
[success] Total time: 0 s, completed Mar 27, 2012 12:53:46 PM

This should not be considered successs. I verified by running it directly that aapt returns a non-zero exit status. sbt-android-plugin doesn't seem to be checking this.

jberkel commented 12 years ago

which version of the plugin / sdk do you use? the most recent version has an error check, an other possibility could be that your version of aapt doesn't return correct exit codes. sometimes android tools are buggy.

jberkel commented 12 years ago

sorry, you're correct, i checked the wrong task. will fix.