Session not created exception

Launching Appium server with command: C:\Program Files (x86)\Appium\node.exe lib\server\main.js --address 127.0.0.1 --port 4735 --app E:\docketzoom_jul.apk --session-override --platform-name Android --platform-version 19 --automation-name Appium --device-name “4d006f714ef65181” --log-no-color
info: Welcome to Appium v1.4.16 (REV ae6877eff263066b26328d457bd285c0cc62430d)
info: Appium REST http interface listener started on 127.0.0.1:4735
info: [debug] Non-default server args: {“app”:“E:\docketzoom_jul.apk”,“address”:“127.0.0.1”,“port”:4735,“sessionOverride”:true,“logNoColors”:true,“deviceName”:“4d006f714ef65181”,“platformName”:“Android”,“platformVersion”:“19”,“automationName”:“Appium”}
info: Console LogLevel: debug
info: → POST /wd/hub/session {“desiredCapabilities”:{“appPackage”:“com.hurix.kitaboo.docketzoom”,“app”:“E:\docketzoom_jul.apk”,“no”:true,“noReset”:true,“newCommandTimeout”:“500”,“platformVersion”:“4.4.4”,“automationName”:“Appium”,“platformName”:“Android”,“deviceName”:“4d006f714ef65181”}}
info: Client User-Agent string: Apache-HttpClient/4.5.1 (Java/1.8.0_65)
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. : no
info: [debug] No appActivity desired capability or server param. Parsing from apk.
info: [debug] Using local app from desired caps: E:\docketzoom_jul.apk
info: [debug] Creating new appium session 468cf823-addd-43f6-8363-b766b55da91a
info: Starting android appium
info: [debug] Getting Java version
info: Java version is: 1.8.0_65
info: [debug] Checking whether adb is present
info: [debug] Using adb from E:\Androidsdk\platform-tools\adb.exe
info: [debug] Parsing package and activity from app manifest
info: [debug] Checking whether aapt is present
info: [debug] Using aapt from E:\Androidsdk\build-tools\23.0.2\aapt.exe
info: [debug] Extracting package and launch activity from manifest.
info: [debug] executing cmd: E:\Androidsdk\build-tools\23.0.2\aapt.exe dump badging E:\docketzoom_jul.apk
info: [debug] badging package: com.hurix.kitaboo.docketzoom
info: [debug] badging act: com.hurix.kitaboo.docketzoom.LaunchActivity
info: [debug] Parsed package and activity are: com.hurix.kitaboo.docketzoom/com.hurix.kitaboo.docketzoom.LaunchActivity
info: [debug] Using fast reset? false
info: [debug] Preparing device for session
info: [debug] Checking whether app is actually present
info: Retrieving device
info: [debug] Trying to find a connected android device
info: [debug] Getting connected devices…
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe devices
info: [debug] 1 device(s) connected
info: Found device 4d006f714ef65181
info: [debug] Setting device id to 4d006f714ef65181
info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 wait-for-device
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “echo ‘ready’”
info: [debug] Starting logcat capture
info: [debug] Getting device API level
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “getprop ro.build.version.sdk”
info: [debug] Device is at API Level 21
info: Device API level is: 21
info: [debug] Extracting strings for language: default
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “getprop persist.sys.language”
info: [debug] Current device persist.sys.language: en
info: [debug] java -jar “C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\appium_apk_tools.jar” “stringsFromApk” “E:\docketzoom_jul.apk” “C:\Users\KIRTIM~1.SIN\AppData\Local\Temp\com.hurix.kitaboo.docketzoom” en
info: [debug] No strings.xml for language ‘en’, getting default strings.xml
info: [debug] java -jar “C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\appium_apk_tools.jar” “stringsFromApk” “E:\docketzoom_jul.apk” “C:\Users\KIRTIM~1.SIN\AppData\Local\Temp\com.hurix.kitaboo.docketzoom”
info: [debug] Reading strings from converted strings.json
info: [debug] Setting language to default
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 push “C:\Users\KIRTIM~1.SIN\AppData\Local\Temp\com.hurix.kitaboo.docketzoom\strings.json” /data/local/tmp
info: [debug] Checking whether aapt is present
info: [debug] Using aapt from E:\Androidsdk\build-tools\23.0.2\aapt.exe
info: [debug] Retrieving process from manifest.
info: [debug] executing cmd: E:\Androidsdk\build-tools\23.0.2\aapt.exe dump xmltree E:\docketzoom_jul.apk AndroidManifest.xml
info: [debug] Set app process to: com.hurix.kitaboo.docketzoom
info: [debug] Not uninstalling app since server not started with --full-reset
info: [debug] Checking app cert for E:\docketzoom_jul.apk.
info: [debug] executing cmd: java -jar “C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\verify.jar” E:\docketzoom_jul.apk
info: [debug] App already signed.
info: [debug] Zip-aligning E:\docketzoom_jul.apk
info: [debug] Checking whether zipalign is present
info: [debug] Using zipalign from E:\Androidsdk\build-tools\23.0.2\zipalign.exe
info: [debug] Zip-aligning apk.
info: [debug] executing cmd: E:\Androidsdk\build-tools\23.0.2\zipalign.exe -f 4 E:\docketzoom_jul.apk C:\Users\KIRTIM~1.SIN\AppData\Local\Temp\11664-8032-vmdbu\appium.tmp
info: [debug] MD5 for app is f65e649a6f476a128cdfd00bc39513f7
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “ls /data/local/tmp/f65e649a6f476a128cdfd00bc39513f7.apk”
info: [debug] Getting install status for com.hurix.kitaboo.docketzoom
info: [debug] Getting device API level
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “getprop ro.build.version.sdk”
info: [debug] Device is at API Level 21
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “pm list packages -3 com.hurix.kitaboo.docketzoom”
info: [debug] App is installed
info: [debug] Forwarding system:4724 to device:4724
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 forward tcp:4724 tcp:4724
info: [debug] Pushing appium bootstrap to device…
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 push “C:\Program Files (x86)\Appium\node_modules\appium\build\android_bootstrap\AppiumBootstrap.jar” /data/local/tmp/
info: [debug] Pushing settings apk to device…
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 install “C:\Program Files (x86)\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk”
info: [debug] Pushing unlock helper app to device…
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 install “C:\Program Files (x86)\Appium\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk”
info: Starting App
info: [debug] Attempting to kill all ‘uiautomator’ processes
info: [debug] Getting all processes with ‘uiautomator’
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “ps ‘uiautomator’”
info: [debug] No matching processes found
info: [debug] Running bootstrap
info: [debug] spawning: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap -e pkg com.hurix.kitaboo.docketzoom -e disableAndroidWatchers false
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [debug] [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1
info: [debug] [BOOTSTRAP] [debug] Socket opened on port 4724
info: [debug] [BOOTSTRAP] [debug] Appium Socket Server Ready
info: [debug] [BOOTSTRAP] [debug] Loading json…
info: [debug] [BOOTSTRAP] [debug] json loading complete.
info: [debug] [BOOTSTRAP] [debug] Registered crash watchers.
info: [debug] Waking up device if it’s not alive
info: [debug] Pushing command to appium work queue: [“wake”,{}]
info: [debug] [BOOTSTRAP] [debug] Client connected
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“wake”,“params”:{}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: wake
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window”
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:true}
info: [debug] Screen already unlocked, continuing.
info: [debug] Pushing command to appium work queue: [“getDataDir”,{}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“getDataDir”,“params”:{}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getDataDir
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:“/data/local/tmp”}
info: [debug] dataDir set to: /data/local/tmp
info: [debug] Pushing command to appium work queue: [“compressedLayoutHierarchy”,{“compressLayout”:false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“compressedLayoutHierarchy”,“params”:{“compressLayout”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: compressedLayoutHierarchy
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:false}
info: [debug] Getting device API level
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “getprop ro.build.version.sdk”
info: [debug] Device is at API Level 21
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n com.hurix.kitaboo.docketzoom/com.hurix.kitaboo.docketzoom.LaunchActivity”
info: [debug] Waiting for pkg “com.hurix.kitaboo.docketzoom” and activity “com.hurix.kitaboo.docketzoom.LaunchActivity” to be focused
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
info: [debug] Getting focused package and activity
info: [debug] executing cmd: E:\Androidsdk\platform-tools\adb.exe -s 4d006f714ef65181 shell “dumpsys window windows”
error: com.hurix.kitaboo.docketzoom/.LaunchActivity never started. Current: com.hurix.kitaboo.docketzoom/com.hurix.docket.activity.LoginActivity
info: [debug] Stopping logcat capture
info: [debug] Logcat terminated with code null, signal SIGTERM
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“shutdown”}
info: [debug] [BOOTSTRAP] [debug] Got command of type SHUTDOWN
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:0,“value”:“OK, shutting down”}
info: [debug] [BOOTSTRAP] [debug] Closed client connection
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=.
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 0
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [debug] [UIAUTOMATOR STDOUT] Test results for WatcherResultPrinter=.
info: [debug] [UIAUTOMATOR STDOUT] Time: 22.434
info: [debug] [UIAUTOMATOR STDOUT] OK (1 test)
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: -1
info: [debug] Sent shutdown command, waiting for UiAutomator to stop…
info: [debug] UiAutomator shut down normally
info: [debug] Cleaning up android objects
info: [debug] Cleaning up appium session
error: Failed to start an Appium session, err was: Error: com.hurix.kitaboo.docketzoom/.LaunchActivity never started. Current: com.hurix.kitaboo.docketzoom/com.hurix.docket.activity.LoginActivity
info: [debug] Error: com.hurix.kitaboo.docketzoom/.LaunchActivity never started. Current: com.hurix.kitaboo.docketzoom/com.hurix.docket.activity.LoginActivity
at [object Object]. (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:1314:12)
at [object Object]. (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:1258:7)
at [object Object]. (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:180:9)
at ChildProcess.exithandler (child_process.js:742:7)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1016:16)
at Process.ChildProcess._handle.onexit (child_process.js:1088:5)
info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: com.hurix.kitaboo.docketzoom/.LaunchActivity never started. Current: com.hurix.kitaboo.docketzoom/com.hurix.docket.activity.LoginActivity)”,“origValue”:“com.hurix.kitaboo.docketzoom/.LaunchActivity never started. Current: com.hurix.kitaboo.docketzoom/com.hurix.docket.activity.LoginActivity”},“sessionId”:null}
info: ← POST /wd/hub/session 500 35829.484 ms - 396

Note: Every time i need to uninstall app to get rid of this issue:.
Capabilities are below:

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(“no”,true);
capabilities.setCapability(“newCommandTimeout” , “500”);
capabilities.setCapability(“noReset”, true);
capabilities.setCapability(“deviceName” , devicename);
capabilities.setCapability(“platformVersion” , “4.4.4”);
capabilities.setCapability(“platformName” , “Android”);
capabilities.setCapability(“appPackage” , “com.hurix.kitaboo.docketzoom”);
capabilities.setCapability(“app”, application);
capabilities.setCapability(“automationName”, “Appium”);

	Driver.DRIVER = new AndroidDriver<WebElement>(new  URL("http://127.0.0.1:4735/wd/hub"), capabilities);

hi @kirtiman have you already resolved this issue? encountering this right now