I am trying to reference apk from url but not successful. Here is what I am trying -
capabilities.setCapability("app", new URL("http://jenkinsserverurl:8181/job/projectname/apk/apkname.apk"));
.
.
.
driver = new RemoteWebDriver(new URL("http://remote test url:4723/wd/hub"),capabilities);
Appium server throws following error :-
info: --> POST /wd/hub/session {"desiredCapabilities":{"app":{"userInfo":null,"query":null,"hCode":1439549959,"defaultPort":80,"path":"//.apk","protocol":"http","ref":null,"file":"//.apk","port":8181,"authority":":8181","host":"","class":"java.net.URL"},"appPackage":"","appActivity":".MainActivity","browserName":"","platformName":"Android","version":"4.4","deviceName":"emulator-5554","platform":"ANDROID"}}
error: Using local app, but didn't end in .zip, .ipa or .apk
Tried multiple things but no success. Suggestions are welcome.