banshee / AndroidProguardScala

An Eclipse builder for Android projects using Scala
136 stars 10 forks source link

Eclipse not picking up the generated library #42

Closed fxthomas closed 11 years ago

fxthomas commented 11 years ago

If I'm not mistaken, the Android build should use libs/scala_library.min.jar, right?

In my case, Eclipse detects it, AndroidProguardScala generates it correctly (as far as I could tell), but the Dex compiler doesn't pick it up. I tried cleaning the project and restarting Eclipse multiple times ; sometimes (rarely) it worked, but I wasn't able to identify what I did exactly.

Any idea about what I am doing wrong?

fxthomas commented 11 years ago

Ah, I think I got it. I thought the libs folder would be automatically used by Android, but it seems that it isn't. Sorry for that, problem solved ;)

banshee commented 11 years ago

You're right about the libs directory - ADT is supposed to use all the jars that are in there, dex them, and put them in the apk - see http://tools.android.com/recent/dealingwithdependenciesinandroidprojects. What did you have to change?

fxthomas commented 11 years ago

SBTEclipse didn't include the libs/ folder directly, but I thought it'd be taken care of automatically like res/ by the android plugin. Turns out I was mistaken, but it took me time to see it.

banshee commented 11 years ago

OK, I'm going to close this as an sbt bug then - thanks!