noidsirius / SootTutorial

A step-by-step tutorial for Soot (a Java static analysis framework)
GNU General Public License v3.0
430 stars 177 forks source link

Question About update soot dependency #25

Open niorgai opened 1 year ago

niorgai commented 1 year ago

I noticed version of all the soot-infoflow-xxxx.jar is 2.8. and i want to update them to 2.10 from FlowDroid release page.

after that i got a mistake:

Exception in thread "main" java.lang.NoSuchMethodError: 'soot.LocalGenerator soot.Scene.createLocalGenerator(soot.Body)'
    at soot.jimple.infoflow.cfg.LibraryClassPatcher.generateMessageObtainMethod(LibraryClassPatcher.java:231)
    at soot.jimple.infoflow.cfg.LibraryClassPatcher.patchMessageObtainImplementation(LibraryClassPatcher.java:123)
    at soot.jimple.infoflow.cfg.LibraryClassPatcher.patchLibraries(LibraryClassPatcher.java:71)
    at soot.jimple.infoflow.android.SetupApplication.initializeSoot(SetupApplication.java:1194)
    at soot.jimple.infoflow.android.SetupApplication.runInfoflow(SetupApplication.java:1439)
    at soot.jimple.infoflow.android.SetupApplication.constructCallgraph(SetupApplication.java:1311)
    at dev.navids.soottutorial.android.AndroidCallgraph.main(AndroidCallgraph.java:123)

maybe i should update org.soot-oss:soot:4.2.1, but soot release page latest version is 4.2.1. How should i fix this error please ?