Error: android.util.AndroidException: INSTRUMENTATION_FAILED

Hi All,

I am using appium tool for automating the android application. My application supports from android 2.3 but when i try to my script on android 4.1. 2 i’m getting error: android.util.AndroidException: INSTRUMENTATION_FAILED error.

Anybody got solution for this issue. Kindly update ASAP

Logs:

info: [debug] Getting device API level
info: [debug] executing cmd: D:\Thales_eclipse\sdk\platform-tools\adb.exe -s 4100cf1726ebcf00 shell “getprop ro.build.version.sdk”
info: [debug] Device is at API Level 16
info: [debug] executing cmd: D:\Thales_eclipse\sdk\platform-tools\adb.exe -s 4100cf1726ebcf00 shell “am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n io.appium.unlock/.Unlock”
info: [debug] executing cmd: D:\Thales_eclipse\sdk\platform-tools\adb.exe -s 4100cf1726ebcf00 shell “dumpsys window”
info: [debug] Screen is unlocked, continuing
info: [debug] executing cmd: D:\Thales_eclipse\sdk\platform-tools\adb.exe -s 4100cf1726ebcf00 shell “am instrument -e main_activity ‘com.ittiam.muVplayer.MainActivity’ com.ittiam.muVplayer.selendroid/io.selendroid.server.ServerInstrumentation”
error: android.util.AndroidException: INSTRUMENTATION_FAILED: com.ittiam.muVplayer.selendroid/io.selendroid.server.ServerInstrumentation

at com.android.commands.am.Am.runInstrument(Am.java:616)

at com.android.commands.am.Am.run(Am.java:118)

at com.android.commands.am.Am.main(Am.java:81)

at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)

at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:280)

at dalvik.system.NativeStart.main(Native Method)
info: [debug] Cleaning up appium session
error: Failed to start an Appium session, err was: Error: android.util.AndroidException: INSTRUMENTATION_FAILED: com.ittiam.muVplayer.selendroid/io.selendroid.server.ServerInstrumentation

info: [debug] Error: android.util.AndroidException: INSTRUMENTATION_FAILED: com.ittiam.muVplayer.selendroid/io.selendroid.server.ServerInstrumentation

at C:\Program Files\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:1394:17
at [object Object].<anonymous> (C:\Program Files\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:180:9)
at ChildProcess.exithandler (child_process.js:635:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)

info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: android.util.AndroidException: INSTRUMENTATION_FAILED: com.ittiam.muVplayer.selendroid/io.selendroid.server.ServerInstrumentation\r\r)”,“origValue”:“android.util.AndroidException: INSTRUMENTATION_FAILED: com.ittiam.muVplayer.selendroid/io.selendroid.server.ServerInstrumentation\r\r”},“sessionId”:null}
info: ← POST /wd/hub/session 500 80609.385 ms - 388