Skip to content

Instantly share code, notes, and snippets.

@akhy
Forked from mandrachek/MultiDexJunitRunner
Created January 26, 2016 08:46
Show Gist options
  • Save akhy/402ac67ec3b7bd084d10 to your computer and use it in GitHub Desktop.
Save akhy/402ac67ec3b7bd084d10 to your computer and use it in GitHub Desktop.
AndroidJunitRunner that supports MultiDex
import android.os.Bundle;
import android.support.multidex.MultiDex;
import android.support.test.runner.AndroidJUnitRunner;
public class MultiDexJunitRunner extends AndroidJUnitRunner {
@Override
public void onCreate(Bundle arguments) {
MultiDex.install(getTargetContext());
super.onCreate(arguments);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment