Skip to content

Instantly share code, notes, and snippets.

@stepango
Last active August 29, 2015 14:11
Show Gist options
  • Save stepango/52e9c69186317af1e95b to your computer and use it in GitHub Desktop.
Save stepango/52e9c69186317af1e95b to your computer and use it in GitHub Desktop.
Glide crash
public class App extends Application {
public void onCreate() {
super.onCreate();
AsyncTask.execute(new Runnable() {
@Override
public void run() {
Glide.get(App.this).register(GlideUrl.class, InputStream.class,
new OkHttpUrlLoader.Factory(new OkHttpClient()));
}
});
}
}
@stepango
Copy link
Author

gradle config

compile 'com.github.bumptech.glide:glide:3.4.0'
compile 'com.github.bumptech.glide:okhttp-integration:1.1.0'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment