New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android test projects? #34
Comments
It doesn't look like those projects have AndroidProguardScala nature; What does the proguard_processed.conf file look like? |
FYI, I'm starting to add to the troubleshooting section of On Sun, Feb 3, 2013 at 12:41 PM, James Moore banshee@banshee.com wrote:
James Moore |
On Sun, Feb 3, 2013 at 3:42 PM, James Moore notifications@github.com wrote:
The nature is listed in hi/.project and hiTest/.project
I've never seen such a thing. I do have proguard_cache and proguard_cache_conf directories, which I
like this:
/Users/jim/e/hi/proguard_cache_conf/proguard_additions.conf here So it looks like there's a missing -injars for the test project. Jim Fulton |
What Scala ide version are you using?
|
On Sun, Feb 3, 2013 at 4:02 PM, Jim Fulton jim@zope.com wrote:
Sorry, I think I sent the wrong one. It look like this: -injars "/Users/jim/i/android/eclipse/configuration/org.eclipse.osgi/bundles/479/1/.cp/lib/scala-library.jar"(!META-INF/MANIFEST.MF) -ignorewarnings Inserting proguard additions file/Users/jim/e/hiTests/proguard_cache_conf/proguard_additions.conf here /Users/jim/e/hiTests/proguard_cache_conf/proguard_additions.conf (Nosuch file or directory) So it does have the test class directory. I noticed in the AndroidProguardScala properties that the Give that the error I'm getting is: E/AndroidRuntime(2992): java.lang.NoClassDefFoundError: That seemed relevant, but even after setting scala-reflect to be an Jim Fulton |
On Sun, Feb 3, 2013 at 4:19 PM, James Moore notifications@github.comwrote:
2.1.0 nightly 2_10 from Jan 24. I couldn't get a non nightly release to work. Jim Fulton |
Removing the AndroidProguardScala nature and putting the scala library in by libs directory worked. So then... Added proguard_cache_conf/proguard_additions.conf with: -keep class scala.reflect.ScalaSignature removed proguard_cache and success! So, maybe AndroidProguardScala should add that for test projects? I guess I should check proguard_cache_conf in? The README's description of proguard_cache and proguard_cache_conf don't seem to match what I'm seeing. |
Is AndroidProguardScala known to work with Android test projects?
Because I can't get it to work. :) When I try to launch the tests, the launch fails and logcat has:
E/AndroidRuntime(1470): java.lang.NoClassDefFoundError: scala/reflect/ScalaSignature
I do get a scala_library.min.jar, but it doesn't contain any classes. just library.properties.
If you care to look, I've created a git repo:
https://github.com/jimfulton/AndroidProguardScala-test-projects-example
with 3 projects:
hi
A scala android hello world app
hiTests
An attempt at an android test project written in scala, which doesn't launch
hiTestsJava
An android test project written in Java that launches and runs just fine.
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: