FlowDroid icon indicating copy to clipboard operation
FlowDroid copied to clipboard

Java.lang.NoSuchMethodError create breakpoint

Open fsickle opened this issue 4 years ago • 6 comments

after maven install, when i use soot-infoflow-androoid-classes.jar, these is something wrong image How can I fix it? Thanks a lot for you answer.

fsickle avatar Nov 29 '21 02:11 fsickle

Did you build the current code from the develop branch? Did you rebuild your own application? The class FlowDroidMain seems to be your own code.

StevenArzt avatar Nov 29 '21 09:11 StevenArzt

@StevenArzt Thanks for your response! The class "FlowDroidMain" is defined to call "SetupApplication" in "soot-inflow-android-classes.jar" . image When I check the source code of flowdroid, I find there is "getSootIntegrationMode()" in version 2.8.

image

However, it seems to be removed in version 2.9. image

Maybe, that is where this error comes in. Actually, I can get success when I use "soot-infoflow-android-classes.jar" of version 2.8. image

But get error when I use "soot-infoflow-android-classes.jar" of version 2.9. This may be due to my lack of understanding of the source code,Thank you again for your reply!

fsickle avatar Nov 30 '21 01:11 fsickle

The InfoflowConfiguration class still provides a method getSootIntegrationMode:

image

StevenArzt avatar Nov 30 '21 09:11 StevenArzt

This is due to not using correct version of soot with flowdroid 2.9 I guess.

maryammsd avatar Jan 14 '22 03:01 maryammsd

If you use maven, you can try to use the version from maven central as indicated in the README file. A compatible soot version should be installed as an dependency automatically.

MarcMil avatar Jan 23 '22 15:01 MarcMil

You could also obtain https://repo1.maven.org/maven2/de/fraunhofer/sit/sse/flowdroid/soot-infoflow-cmd/2.10.0/soot-infoflow-cmd-2.10.0-jar-with-dependencies.jar which is a jar containing all dependencies packaged in in the same jar.

MarcMil avatar Jan 23 '22 15:01 MarcMil