com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_FAILED_VERSION_DOWNGRADE code example
Example: com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException
You probably need to allocate more internal memory to your emulator.