Checking if an update is available
Starting Node Server
Update not available
info: Welcome to Appium v1.3.4 (REV c8c79a85fbd6870cd6fc3d66d038a115ebe22efe)
info: Appium REST http interface listener started on 127.0.0.1:4723
info: [debug] Non-default server args: {“address”:“127.0.0.1”,“logNoColors”:true,“platformName”:“Android”,“platformVersion”:“19”,“automationName”:“Appium”}
info: Console LogLevel: debug
info: → POST /wd/hub/session {“desiredCapabilities”:{“app-Package”:“com.packagename”,“platformVersion”:“4.4.3”,“platform”:“Windows”,“platformName”:“Android”,“deviceName”:“Android”,“appActivity”:“com.packagename.login.LoginActivity”}}
error: No app set; either start appium with --app or pass in an ‘app’ value in desired capabilities, or set androidPackage to launch pre-existing app on device
info: Client User-Agent string: Apache-HttpClient/4.3.2 (java 1.5)
error: Failed to start an Appium session, err was: Error: No app set; either start appium with --app or pass in an ‘app’ value in desired capabilities, or set androidPackage to launch pre-existing app on device
info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : app-Package, platform
error: Unexpected error: Error: Can’t set headers after they are sent.
at ServerResponse.OutgoingMessage.setHeader (http.js:691:11)
info: [debug] No appPackage desired capability or server param. Parsing from apk.
at ServerResponse.res.set.res.header (C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\node_modules\express\lib\response.js:561:10)
at ServerResponse.res.send (C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\node_modules\express\lib\response.js:133:12)
at ServerResponse.res.json (C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\node_modules\express\lib\response.js:210:15)
at ServerResponse.res.send (C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\node_modules\express\lib\response.js:121:21)
at C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\lib\server\helpers.js:42:9
info: [debug] Got configuration error, not starting session
at safely (C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\lib\server\helpers.js:306:5)
at Layer.module.exports.catchAllHandler [as handle] (C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\lib\server\helpers.js:41:3)
at trim_prefix (C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\node_modules\express\lib\router\index.js:261:17)
info: [debug] Cleaning up appium session
at C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\node_modules\express\lib\router\index.js:225:9 context: [POST /wd/hub/session {“desiredCapabilities”:{“app-Package”:“com.packagename”,“platformVersion”:“4.4.3”,“platform”:“Windows”,“platformName”:“Android”,“deviceName”:“Android”,“appActivity”:“com.packagename.login.LoginActivity”]
TypeError: Cannot set property ‘onResetTimeout’ of null
at Appium.configure (C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\lib\appium.js:240:30)
at null. (C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\lib\appium.js:106:10)
at Appium.start (C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\lib\appium.js:117:5)
at Object.exports.createSession [as handle] (C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\lib\server\controller.js:182:16)
info: [debug] Error: No app set; either start appium with --app or pass in an ‘app’ value in desired capabilities, or set androidPackage to launch pre-existing app on device
at androidCommon.configure (C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\lib\devices\android\android-common.js:48:8)
at Appium.configure (C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\lib\appium.js:238:15)
at Route.dispatch (C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\node_modules\express\lib\router\route.js:117:5)
at null. (C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\lib\appium.js:106:10)
at Appium.start (C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\lib\appium.js:117:5)
at Object.exports.createSession [as handle] (C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\lib\server\controller.js:182:16)
at next (C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\node_modules\express\lib\router\index.js:216:19)
at next (C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\node_modules\express\lib\router\index.js:180:38)
at C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\node_modules\express\lib\router\index.js:222:24
at Function.proto.process_params (C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\node_modules\express\lib\router\index.js:288:12)
at next (C:\Users\DeepikaUppal\Desktop\Appium\node_modules\appium\node_modules\express\lib\router\index.js:216:19)
info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: No app set; either start appium with --app or pass in an ‘app’ value in desired capabilities, or set androidPackage to launch pre-existing app on device)”,“origValue”:“No app set; either start appium with --app or pass in an ‘app’ value in desired capabilities, or set androidPackage to launch pre-existing app on device”},“sessionId”:null}
info: ← POST /wd/hub/session 500 13.827 ms - 426
I think this is the problem.
Check your desired capabilities:
[caps]
platformName = “Android”
platformVersion = “4.4”
deviceName = “Galaxy S4”
appPackage = “com.blackboard.android.bbstudent”
appActivity = “com.blackboard.android.learn.launch.activity.LaunchActivity”
app = “apps/android-learn-debug.apk”
you need at a minum either the app or the appPackage/appActivity. If you google aapt, you’ll figure out how to get those.