java.util.concurrent.ExecutionException: com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_FAILED_USER_RESTRICTED: Invalid apk code example
Example: com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException
You probably need to allocate more internal memory to your emulator.