I'm a little bit desperate at the moment. I'm trying to use an Akka project (written in scala) under Android (in Eclipse), but whatever I try, I can't make it work.
For simplicity I created two projects: One Akka project, created using sbt eclipse and then imported to eclipse, and one standard android project using the project creation wizard. I can reference the Akka-code from the android code, but at Runtime I always get a NoClassDefFoundError
.
I would really appreciate if someone could point out what I'm doing wrong or what I could in general do to use my Akka project in my Android app.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- Unusual use of the new keyword
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
I'm firing blind without seeing a stack trace, but it sounds like you didn't export the Akka project from the Android project.
I feel your pain. I spent hours trying to get sbt, proguard, scala, akka to work, and recommend you take a look at the project/Build.scala from here:
https://github.com/fehguy/swagger-for-the-home/tree/master/android
Specifically the
proguard
options:)