Android 7.0 & 8.0

Hi,

I have successfully install the app in Samsung Android 7.0 device in Selenium+ Jave code.

But same code not working for Samsung Android 8.0 device,

Just changed the
cap.setCapability(“platformVersion”, “7.0”); to cap.setCapability(“platformVersion”, “8.0”);
and
cap.setCapability(“deviceName”, “0915f9d3592c1904”) to cap.setCapability(“deviceName”, “4200c4c9cce0542b”);

Plz help me