dtmilano / CulebraTester-public

Public repository corresponding to CulebraTester
11 stars 0 forks source link

INSTRUMENTATION_RESULT: shortMsg=java.lang.ClassNotFoundException. #2

Closed timrijckaert closed 7 years ago

timrijckaert commented 8 years ago

INSTRUMENTATION_RESULT: shortMsg=java.lang.ClassNotFoundException.

Thanks again for the hard work on this repo. I tried experimenting with your apk's today so I installed both on a Nexus 5 running. However I can't seem to connect to my PC.

Repro Steps

  1. Connect Android device to PC
  2. Open 'Culebra Tester' on Android device.
  3. Go to url the service is running on
  4. Upon connecting the site prompts
curl -s http://android-5ba28edaf356b383:9999//Assets/runinstrumentation.sh | bash
  1. Copy and paste code into console.

    Expected

  2. Start testing!

    Actual

  3. Ubuntu 15.10:
tim@tim-Aspire-S7-392:~$ curl -s http://android-5ba28edaf356b383:9999/Assets/runinstrumentation.sh | bash
INSTRUMENTATION_RESULT: shortMsg=java.lang.ClassNotFoundException
INSTRUMENTATION_RESULT: longMsg=java.lang.ClassNotFoundException: Didn't find class "com.dtmilano.android.uiautomatorhelper.UiAutomatorHelperTestRunner" on path: DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/data/app/com.dtmilano.android.culebratester.test-1/base.apk", zip file "/data/app/com.dtmilano.android.culebratester-1/base.apk"],nativeLibraryDirectories=[/data/app/com.dtmilano.android.culebratester.test-1/lib/arm, /data/app/com.dtmilano.android.culebratester-1/lib/arm, /vendor/lib, /system/lib]]
INSTRUMENTATION_CODE: 0
tim@tim-Aspire-S7-392:~$ 
  1. App quits on device.

    Debug Info

Platform
Devicehammerhead
Brandgoogle
Boardhammerhead
HardwareLGE
ModelNexus 5
API23
Buildhammerhead MOB30M 08a579990245e5c2
Build numberMOB30M
APK
version code8010
version name0.8.10
Display
Size1080x1920
dtmilano commented 8 years ago

Version 0.8.12 should fix the issue. The problem was in the way the APK was minifyed.