Shubham Shubham - 1 year ago 124
Android Question


This is little related to Payubiz payment gateway sdk integration.
However, the main problem is related to building a project.

Whenever we try to run the application on emulator. We get the following

  • What went wrong:
    Execution failed for task ':app:transformClassesWithInstantRunForAppDebug'.

However, the application builds and run smoothly on running on a device.
We have already contacted the Payu Team for the issue. But as it is an android related problem, not the payment gateway. I feel like SO is the better place.

Emulator Details:

  • Name: Nexus_4_API_19 CPU/ABI: Google APIs Intel Atom (x86)

  • Target: google_apis [Google APIs] (API level 19)

  • full

Below, is a reply from payu team. They have confirmed that they were not using any class, neither do i. But after some time/ may be some other dependency/cleaning the project. It works for the emulator as well.

enter image description here

Answer Source

The class is added in API 21. You need to use an emulator with the same or higher API level to access it.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download