I'm traveling atm so I can't look into your issue properly. But from what you describe and if it is really a resource issue, I think the :project-resources doesn't work. You can still import classes because you get them from the JAR you add with external-classes-paths.
Someone certainly managed to include Google Maps but I haven't. I can check it when I get back home.
I'm having similar issues importing play services to use the analytics. Importing the android bundled extras is a bit of a pain at the moment, there seem to be a lot of different ways of doing it, none of which works particularly well. I particularly dislike having to set hard paths for the dependencies. I think a lot of this would get easier with AAR support, at which point I think you could bundle the play services into an AAR, but this requires someone to get around to that!
It's also a bit rubbish that the resource path is a string rather than a vector at the moment, that would have allowed for a temporary workaround at least.
Adam.
--
You received this message because you are subscribed to the Google Groups "clojure-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure-andro...@googlegroups.com.
To post to this group, send email to clojure...@googlegroups.com.
Visit this group at http://groups.google.com/group/clojure-android.
For more options, visit https://groups.google.com/d/optout.
com.google.android.gms.maps.MapFragment does not exist).
R.
08-11 13:43:04.013: E/lookingForErrorCause(2271): appNameView = null, R.string.app_name = 2131034146
08-11 13:43:04.023: E/AndroidRuntime(2271): FATAL EXCEPTION: main
08-11 13:43:04.023: E/AndroidRuntime(2271): Process: com.example.debug, PID: 2271
08-11 13:43:04.023: E/AndroidRuntime(2271): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.debug/com.example.SplashActivity}: java.lang.NullPointerException
08-11 13:43:04.023: E/AndroidRuntime(2271): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
08-11 13:43:04.023: E/AndroidRuntime(2271): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
08-11 13:43:04.023: E/AndroidRuntime(2271): at android.app.ActivityThread.access$800(ActivityThread.java:135)
08-11 13:43:04.023: E/AndroidRuntime(2271): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
08-11 13:43:04.023: E/AndroidRuntime(2271): at android.os.Handler.dispatchMessage(Handler.java:102)
08-11 13:43:04.023: E/AndroidRuntime(2271): at android.os.Looper.loop(Looper.java:136)
08-11 13:43:04.023: E/AndroidRuntime(2271): at android.app.ActivityThread.main(ActivityThread.java:5001)
08-11 13:43:04.023: E/AndroidRuntime(2271): at java.lang.reflect.Method.invokeNative(Native Method)
08-11 13:43:04.023: E/AndroidRuntime(2271): at java.lang.reflect.Method.invoke(Method.java:515)
08-11 13:43:04.023: E/AndroidRuntime(2271): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
08-11 13:43:04.023: E/AndroidRuntime(2271): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
08-11 13:43:04.023: E/AndroidRuntime(2271): at dalvik.system.NativeStart.main(Native Method)
08-11 13:43:04.023: E/AndroidRuntime(2271): Caused by: java.lang.NullPointerException
08-11 13:43:04.023: E/AndroidRuntime(2271): at com.example.SplashActivity.setupSplash(SplashActivity.java:41)
08-11 13:43:04.023: E/AndroidRuntime(2271): at com.example.SplashActivity.onCreate(SplashActivity.java:24)
08-11 13:43:04.023: E/AndroidRuntime(2271): at android.app.Activity.performCreate(Activity.java:5231)
08-11 13:43:04.023: E/AndroidRuntime(2271): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
08-11 13:43:04.023: E/AndroidRuntime(2271): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
08-11 13:43:04.023: E/AndroidRuntime(2271): ... 11 more
This looks like a bug in lein-droid, doesn't it?
Răzvan
Just a guess here but this sounds like it might be a multi dex issue. You add the extra dependency and it becomes random which of the multiple dex files your splash activity gets bundled into. Then when code tries to resolve your splash activity through reflection, instead of a class not found, it looks like a null pointer error?
See if in the cases where it fails you have both a classes.dex and a classes2.dex in your target directory, and if that's true, use the dex dump tool and grep to see which one has your splash activity in it. If it's not in the first one, that's not available straight away and you need to set the main dex class rules proguard file, I think there are instructions in the wiki. I can't remember offhand and am on my phone.
Let me know if it looks like this is the issue but you're still having trouble.
Adam
--
roti@pella:~/proiecte/test$ find . -name *.dex
./target/debug/classes.dex