Last active
August 29, 2015 14:11
-
-
Save stepango/52e9c69186317af1e95b to your computer and use it in GitHub Desktop.
Glide crash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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())); | |
} | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gradle config
compile 'com.github.bumptech.glide:glide:3.4.0'
compile 'com.github.bumptech.glide:okhttp-integration:1.1.0'