mkstub mkstub tool from google (Modified to use Gradle & stub all classes) To create a jar file with all methods replaced by stubs, like android.jar in Android SDK.