Open aguestuser opened 9 years ago
The error message you posted is definitely the compiler cannot find android library.
You posted detailed configuration, but I am not clear that you set the launch configuration properly:
https://github.com/pocorall/hello-scaloid-sbt#import-the-sbt-project
Especially in this part:
Edit the generated run configuration. Remove the 'Before launch: Make' then add a new SBT command android:package-debug then tab out or it will not save, then click OK then OK.
If you succeed to build and launch with sbt ~run
command, it is also a good idea to use command-line sbt.
@pocorall very reassuring someone can pin down the cause of the compile error!
sadly, i'm not sure the suggestion about launch configurations gets me anywhere. i followed the instructions to replace Make
with the android-package-debug
command, and have confirmed a few times that i did so according to the instructions.
are there any other things that could be causing this? any output i could examine or share that would help pinpoint the problem? perhaps something about the new lolipop sdk doesn't play nice with scaloid dependencies?
also, as to using command-line sbt, my workflow (testing, docs, typechecking, etc..) is all tied to intellij, so ditching it is a possible but highly undesirable solution. given that i've got a couple other folks who want to also use scaloid in intellij and are hitting the same issue, it seems like a substantial enough use case to try to drill down on and solve for all of us.
(that anyway is my thinking on why it's worth my personal time trying to pursue the problem despite an intractable impasse. you of course should use your time however you see best fit! :))
/a/
@pocorall I am having the same error and I checked that the android library is on the bootclasspath in compiler options. @aguestuser , what was your resolution?
In your first posting,
tried to compile
How did you compile it?
Just Run the project [Shift + F10] is enough, if you setup the sbt task properly in Run/Debug Configurations dialog.
I get a Progaurd-related dependency warning upon importing and a ridiculously low-level compile error upon trying to compile or run. Two of my coworkers with similar stacks reproduced the error with the same error message and stack trace.
My specific steps were as follows:
android update project -p .
in the project root(Incidentally, I can compile successfully and generate a working .adk by running
sbt android:package
from the project root.)I am running:
When I import the project, I get the following warnings:
When I try to compile I get the following error message and stack trace:
This is what my build.sbt file looks like:
This is what my progaurd.sbt.txt file looks like: