uds-se / droidmate

DroidMate-2: A Platform for Android Test Generation
http://www.boxmate.org/
GNU General Public License v3.0
28 stars 14 forks source link

Instrumenter Class not found error #6

Closed chanhduc closed 4 years ago

chanhduc commented 5 years ago

I have recently cloned this project yesterday and built it successfully with gradle. I've tried running droitmate and it seemed to be ok. However, when I tried instrumented apk, the problem occurred.

Exception in thread "main" java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException
    at org.droidmate.coverage.Instrumenter.instrument(Instrumenter.kt:196)
...

I also dived in the project's source code and I found there's not any source code related to org.droidmate.coverage.Instrumenter. Does the last commit of this project cause this issue?

Could you please help to fix it?

Thank you.

natanieljr commented 5 years ago

Hi,

Yes, there's currently a bug which I'm trying to fix. There is a Gradle configuration error in DM and it's not pulling the necessary Soot repositories for instrumentation.

In the meantime, you can instrument your application using

https://github.com/uds-se/droidmate-coverage

And then take the instrumented app and run Droidmate.

chanhduc commented 5 years ago

Thank you for your quick answer.

I will try this solution.

natanieljr commented 4 years ago

Hi, just checking if the solution worked for you.

If so, I'll close this issue

chanhduc commented 4 years ago

Thank you @natanieljr . It solved my problem.