Instrumentation error while running in selendroid mode even after uninstalling apk, uinstalling selendroid settings

Hi,
I have been getting instrumentation error on running on selendroid mode.This happens on and off and usually with uninstalling selendroid settings, apk and next run it works fine. But currently all these solutions doesnot seem to work. Using a new device and the app is in API16
Thanks,
Sowmya

Please post some logs. The amount of help you receive depends heavily on how much information you can provide.

can u share u r app, I will retry it once on my system …
also mention appium version u r using for automation …

Hi Posting logs It installs the apk fine but when launched it fails. Please look into it and give a reply asap
info: --> POST /wd/hub/session {“desiredCapabilities”:{“automationName”:“Selendroid”,“newCommandTimeout”:600,“platformVersion
“:“4.4”,“platform”:“ANDROID”,“app”:“C:\SVN_LTL_Latest_Code\LTL_1.1\Mobile_Test_Framework_1_1\resources\apk\LTLBaseApp.A
ndroid-Signed.apk”,“autoWebview”:“true”,“platformName”:“Android”,“deviceName”:””,“appActivity”:“ltlbasepp.android.mainactivit
y”,“appPackage”:“SampleApp.Android”}}
info: Client User-Agent string: Apache-HttpClient/4.3.6 (java 1.5)
warn: Converting cap autoWebview from string to boolean. This might cause unexpected behavior.
info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any o
ther services running on this server. : platform
info: [debug] Using local app from desired caps: C:\SVN_LTL_Latest_Code\LTL_1.1\Mobile_Test_Framework_1_1\resources\apk\LTLBa
seApp.Android-Signed.apk
info: [debug] Creating new appium session fd3f3e35-2f8f-4cf1-8fcb-6aff7325dd7d
info: [debug] Starting selendroid server
info: [debug] Getting Java version
info: Java version is: 1.8.0_45
info: [debug] Checking whether adb is present
info: [debug] Using adb from C:\android-sdk-windows\platform-tools\adb.exe
info: [debug] Checking whether selendroid is built yet
info: [debug] Selendroid server exists!
info: [debug] Using fast reset? true
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: C:\android-sdk-windows\platform-tools\adb.exe devices
info: [debug] 1 device(s) connected
info: Found device 160814048B
info: [debug] Setting device id to 160814048B
info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)
info: [debug] executing cmd: C:\android-sdk-windows\platform-tools\adb.exe -s 160814048B wait-for-device
info: [debug] executing cmd: C:\android-sdk-windows\platform-tools\adb.exe -s 160814048B shell “echo ‘ready’”
info: [debug] Starting logcat capture
info: [debug] Checking whether aapt is present
info: [debug] Using aapt from C:\android-sdk-windows\build-tools\22.0.1\aapt.exe
info: [debug] Checking if has internet permission from manifest.
info: [debug] executing cmd: C:\android-sdk-windows\build-tools\22.0.1\aapt.exe dump badging C:\SVN_LTL_Latest_Code\LTL_1.1\M
obile_Test_Framework_1_1\resources\apk\SampleApp.Android-Signed.apk
info: [debug] Rebuilt selendroid server already exists, no need to rebuild it with a new manifest
info: [debug] Checking signed status of C:\Users\H137506\AppData\Local\Temp\selendroid.SampleApp.Android.apk
info: [debug] Checking app cert for C:\Users\H137506\AppData\Local\Temp\selendroid.SampleApp.Android.apk.
info: [debug] executing cmd: java -jar “C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\verify
.jar” C:\Users\H137506\AppData\Local\Temp\selendroid.SampleApp.Android.apk
info: [debug] Checking signed status of C:\SVN_LTL_Latest_Code\LTL_1.1\Mobile_Test_Framework_1_1\resources\apk\LTLBaseApp.And
roid-Signed.apk
info: [debug] Checking app cert for C:\SVN_LTL_Latest_Code\LTL_1.1\Mobile_Test_Framework_1_1\resources\apk\SampleApp.Android
-Signed.apk.
info: [debug] executing cmd: java -jar “C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\verify
.jar” C:\SVN_LTL_Latest_Code\LTL_1.1\Mobile_Test_Framework_1_1\resources\apk\SampleApp.Android-Signed.apk
info: [debug] App already signed.
info: [debug] Zip-aligning C:\Users\H137506\AppData\Local\Temp\selendroid.SampleApp.Android.apk
info: [debug] Checking whether zipalign is present
info: [debug] Using zipalign from C:\android-sdk-windows\build-tools\22.0.1\zipalign.exe
info: [debug] Zip-aligning apk.
info: [debug] executing cmd: C:\android-sdk-windows\build-tools\22.0.1\zipalign.exe -f 4 C:\Users\H137506\AppData\Local\Temp
selendroid.SampleApp.Android.apk C:\Users\H137506\AppData\Local\Temp\116430-8256-1tfx4qy\appium.tmp
info: [debug] App already signed.
info: [debug] Zip-aligning C:\SVN_LTL_Latest_Code\LTL_1.1\Mobile_Test_Framework_1_1\resources\apk\SampleApp.Android-Signed.a
pk
info: [debug] Checking whether zipalign is present
info: [debug] Using zipalign from C:\android-sdk-windows\build-tools\22.0.1\zipalign.exe
info: [debug] Zip-aligning apk.
info: [debug] executing cmd: C:\android-sdk-windows\build-tools\22.0.1\zipalign.exe -f 4 C:\SVN_LTL_Latest_Code\LTL_1.1\Mobil
e_Test_Framework_1_1\resources\apk\SampleApp.Android-Signed.apk C:\Users\H137506\AppData\Local\Temp\116430-8256-oae32w\appiu
m.tmp
info: [debug] Rebuilt selendroid apk exists, doing nothing
info: [debug] Getting install status for SampleApp.Android.selendroid
info: [debug] Getting device API level
info: [debug] executing cmd: C:\android-sdk-windows\platform-tools\adb.exe -s 160814048B shell “getprop ro.build.version.sdk”

info: [debug] MD5 for selendroid server is d23b85b4e157d986a1ad976c3f9fd95f
info: [debug] Device is at API Level 19
info: [debug] executing cmd: C:\android-sdk-windows\platform-tools\adb.exe -s 160814048B shell “pm list packages -3 LTLBaseAp
p.Android.selendroid”
info: [debug] App is installed
info: [debug] Rebuilt selendroid is already installed
info: [debug] Extracting strings for language: default
info: [debug] executing cmd: C:\android-sdk-windows\platform-tools\adb.exe -s 160814048B 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” “C:\SVN_LTL_Latest_Code\LTL_1.1\Mobile_Test_Framework_1_1\resources\apk\SampleApp.Android-Signed.apk” “C:
Users\H137506\AppData\Local\Temp\SampleApp.Android” 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” “C:\SVN_LTL_Latest_Code\LTL_1.1\Mobile_Test_Framework_1_1\resources\apk\SampleApp.Android-Signed.apk” “C:
Users\H137506\AppData\Local\Temp\SampleApp.Android”
info: [debug] Reading strings from converted strings.json
info: [debug] Setting language to default
info: [debug] Not uninstalling app since server not started with --full-reset
info: [debug] Checking app cert for C:\SVN_LTL_Latest_Code\LTL_1.1\Mobile_Test_Framework_1_1\resources\apk\SampleApp.Android
-Signed.apk.
info: [debug] executing cmd: java -jar “C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\verify
.jar” C:\SVN_LTL_Latest_Code\LTL_1.1\Mobile_Test_Framework_1_1\resources\apk\SampleApp.Android-Signed.apk
info: [debug] App already signed.
info: [debug] Zip-aligning C:\SVN_LTL_Latest_Code\LTL_1.1\Mobile_Test_Framework_1_1\resources\apk\SampleApp.Android-Signed.a
pk
info: [debug] Checking whether zipalign is present
info: [debug] Using zipalign from C:\android-sdk-windows\build-tools\22.0.1\zipalign.exe
info: [debug] Zip-aligning apk.
info: [debug] executing cmd: C:\android-sdk-windows\build-tools\22.0.1\zipalign.exe -f 4 C:\SVN_LTL_Latest_Code\LTL_1.1\Mobil
e_Test_Framework_1_1\resources\apk\SampleApp.Android-Signed.apk C:\Users\H137506\AppData\Local\Temp\116430-8256-n8mq5q\appiu
m.tmp
info: [debug] MD5 for app is 8356b610e3c1afa9f1d57a50831517bb
info: [debug] executing cmd: C:\android-sdk-windows\platform-tools\adb.exe -s 160814048B shell “ls /data/local/tmp/8356b610e3
c1afa9f1d57a50831517bb.apk”
info: [debug] Getting install status for SampleApp.Android
info: [debug] Getting device API level
info: [debug] executing cmd: C:\android-sdk-windows\platform-tools\adb.exe -s 160814048B shell “getprop ro.build.version.sdk”

info: [debug] Device is at API Level 19
info: [debug] executing cmd: C:\android-sdk-windows\platform-tools\adb.exe -s 160814048B shell “pm list packages -3 LTLBaseAp
p.Android”
info: [debug] App is installed
info: App is already installed, resetting app
info: [debug] Running fast reset (stop and clear)
info: [debug] executing cmd: C:\android-sdk-windows\platform-tools\adb.exe -s 160814048B shell “am force-stop SampleApp.Andr
oid”
info: [debug] executing cmd: C:\android-sdk-windows\platform-tools\adb.exe -s 160814048B shell “pm clear SampleApp.Android”
info: [debug] Forwarding system:8080 to device:8080
info: [debug] executing cmd: C:\android-sdk-windows\platform-tools\adb.exe -s 160814048B forward tcp:8080 tcp:8080
info: [debug] Pushing settings apk to device…
info: [debug] executing cmd: C:\android-sdk-windows\platform-tools\adb.exe -s 160814048B install “C:\Program Files (x86)\Appi
um\node_modules\appium\build\settings_apk\settings_apk-debug.apk”
info: [debug] Pushing unlock helper app to device…
info: [debug] executing cmd: C:\android-sdk-windows\platform-tools\adb.exe -s 160814048B install “C:\Program Files (x86)\Appi
um\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk”
info: [debug] executing cmd: C:\android-sdk-windows\platform-tools\adb.exe -s 160814048B shell “dumpsys window”
info: [debug] Screen already unlocked, continuing.
info: [debug] executing cmd: C:\android-sdk-windows\platform-tools\adb.exe -s 160814048B shell “am instrument -e main_activit
y ‘samplebasepp.android.mainactivity’ SampleApp.Android.selendroid/io.selendroid.server.ServerInstrumentation”
info: [debug] Making http request with opts: {“url”:“http://localhost:8080/wd/hub/status",“method”:"GET”}
info: [debug] Making http request with opts: {“url”:“http://localhost:8080/wd/hub/status",“method”:"GET”}
info: [debug] Making http request with opts: {“url”:“http://localhost:8080/wd/hub/status",“method”:"GET”}
info: [debug] Making http request with opts: {“url”:“http://localhost:8080/wd/hub/status",“method”:"GET”}
info: [debug] Making http request with opts: {“url”:“http://localhost:8080/wd/hub/status",“method”:"GET”}
info: [debug] Making http request with opts: {“url”:“http://localhost:8080/wd/hub/status",“method”:"GET”}
info: [debug] Making http request with opts: {“url”:“http://localhost:8080/wd/hub/status",“method”:"GET”}
info: [debug] Making http request with opts: {“url”:“http://localhost:8080/wd/hub/status",“method”:"GET”}
info: [debug] Making http request with opts: {“url”:“http://localhost:8080/wd/hub/status",“method”:"GET”}
info: [debug] Making http request with opts: {“url”:“http://localhost:8080/wd/hub/status",“method”:"GET”}
info: [debug] Making http request with opts: {“url”:“http://localhost:8080/wd/hub/status",“method”:"GET”}
info: [debug] Making http request with opts: {“url”:“http://localhost:8080/wd/hub/status",“method”:"GET”}