Right now I have a library project, say project Foo that depends on a library like OkHttp.
Now, Foo has a Maven buildstep that generates an AAR and pushes it up to a public place.
Now lets say I have project B, we'll call it Bar. Bar is an Android application, and Bar depends on Foo.
Well, I have that. However, when I make a call to a public static
function in Foo from Bar that calls OkHttp, I get this message:
java.lang.NoClassDefFoundError: com.squareup.okhttp.OkUrlFactory
at com.foo.sdk.utils.OkHttpStack.<init>(OkHttpStack.java:15)
Is such a thing possible? Or will Bar need to manually depend on OkHttp as well as any other dependencies Foo has?