Closed krisc closed 11 years ago
Hello Kris,
Don't use def
for that kind of thing. def
statements are executed during AOT compilation, so the compiler tries to run the code you pass to def (which it obviously can't do because your computer is not Android).
Put defn
instead of def
and it will be fine.
You're right, I should write a constructor via defn
. Thanks!
I have a DatePickerDialog in my app. I am using
proxy
to make an instance of an anonymous class. It works fine through the REPL. But when I runlein droid build
it does not compile:Here is the (unfinished) code for my proxy object:
I tried adding a
declare
statement near the top of my code, but apparently that isn't the problem: