Skip to content

Instantly share code, notes, and snippets.

@mandrachek
Last active August 22, 2016 09:25
Show Gist options
  • Save mandrachek/d1954f07a3eb95ba3260 to your computer and use it in GitHub Desktop.
Save mandrachek/d1954f07a3eb95ba3260 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