New to maven trying to add a dependency
<dependency>
<groupId>com.koushikdutta.ion</groupId>
<artifactId>ion</artifactId>
<version>1.2.4</version>
</dependency>
And then I update the project and I see the necessary jar files generated in the maven dependencies folder
So then in my activity I want to use Ion so I call it like this
try {
Ion.with(mContext, uri).asBitmap().setCallback(new FutureCallback<Bitmap>() {
@Override
public void onCompleted(Exception e, Bitmap result) {
try {
if (e != null) {
throw e;
}
setImage(v, result);
}
catch (Exception ex) {
e.printStackTrace();
}
}
});
}
catch (Exception ex) {
ex.printStackTrace();
}
I make the necessary imports and there are no errors in the file but at runtime
03-07 21:05:40.492: E/AndroidRuntime(778): FATAL EXCEPTION: pool-1-thread-2
03-07 21:05:40.492: E/AndroidRuntime(778): java.lang.NoClassDefFoundError: com.koushikdutta.ion.Ion
What am I missing to make this work?