Error occurred during initialization of boot layer
java.lang.module.ResolutionException: Modules okio and java.client export package org.openqa.selenium to module client.combined
Program:
package fittr;
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import org.openqa.selenium.remote.DesiredCapabilities;
import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.android.AndroidElement;
import io.appium.java_client.remote.MobileCapabilityType;
public class Base {
public static void main(String[] args) throws MalformedURLException {
File f= new File("Src");
File fs= new File(f,"FITTR.6.0_staging.apk");
DesiredCapabilities cap= new DesiredCapabilities();
cap.setCapability(MobileCapabilityType.DEVICE_NAME,"sonalEmulator");
cap.setCapability(MobileCapabilityType.APP, fs.getAbsolutePath());
AndroidDriver<AndroidElement> driver=new AndroidDriver<AndroidElement>(new URL("
http://127.0.0.1;4723/wd/hub"),cap);
}
}