instrumentation of keePass.apk fails

Mobile Testing, Android App Testing.
annnnn
Posts: 2
Joined: Thu Oct 05, 2017 11:56 pm

instrumentation of keePass.apk fails

Post by annnnn » Fri Oct 06, 2017 12:04 am

instrumenting the demo apk file failed with the following error:

Instrumentation failed. Error:
Failed to deploy the application via USB. pkg: /data/local/tmp/KeePassDroid-instrumented.apk

Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]


2869 KB/s (1903640 bytes in 0.647s)


Info: Exec: C:\Program Files\Java\jre1.8.0_131\bin\java.exe -jar "C:\Program Files (x86)\Ranorex 6.1\Bin\RxEnv\Android\tools\apkTool\apktool.jar" d "C:\Users\name\AppData\Local\RanorexStudio6\RxEnv\Android\temp\KeePassDroid.apk" -f -o "C:\Users\name\AppData\Local\RANORE~1\RxEnv\Android\temp\decomp"
Info: Decompiling APK File.
Info: Processing file 'KeePass.smali' (Pass2).
Info: Processing file 'LockingActivity.smali' (Pass2).
Info: Processing file 'GroupActivityV3.smali' (Pass2).
Info: Processing file 'GroupActivityV4.smali' (Pass2).
Info: Processing file 'GroupEditActivity.smali' (Pass2).
Info: Processing file 'FileSelectActivity.smali' (Pass2).
Info: Processing file 'SearchResults.smali' (Pass2).
Info: Processing file 'AppSettingsActivity.smali' (Pass2).
Info: Recompiling APK File.
Info: Copying custom resources to instrumented APK...
Info: Signing APK File.
Info: Aligning APK File.
Info: Creating destination file in '\\corp-dc02\usersnew\name\Documents\Ranorex\InstrumentedApk\KeePassDroid-instrumented.apk'.
Info: Starting deployment via USB.

any ideas for what might be wrong is appreciated

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: instrumentation of keePass.apk fails

Post by odklizec » Tue Oct 10, 2017 9:11 am

Hi,

Please do not post the same question multiple times. You already got an answer regarding your issue.
If the answer you got did not help you, please communicate it in your original post. Posting the same question again does not help with faster or better response. It just makes the forum cluttered with the same/similar posts ;) Thanks.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

asdf
Posts: 174
Joined: Mon Mar 21, 2016 3:16 pm

Re: instrumentation of keePass.apk fails

Post by asdf » Tue Oct 10, 2017 9:16 am

Just uninstall the application, before instrument and deploy it.
Afterwards, the instrumentation should work again.