secure-software-engineering / FlowDroid

FlowDroid Static Data Flow Tracker
GNU Lesser General Public License v2.1
1.03k stars 293 forks source link

How can i solve this problem? #515

Open green-study opened 1 year ago

green-study commented 1 year ago

image [main] INFO soot.jimple.infoflow.android.SetupApplication - Initializing Soot... [main] INFO soot.jimple.infoflow.android.SetupApplication - Loading dex files... [main] WARN soot.dexpler.DexFileProvider - Multiple dex files detected, only processing 'classes.dex'. Use '-process-multiple-dex' option to process them all. The data flow analysis has failed. Error message: None of the basic classes could be loaded! Check your Soot class path! java.lang.RuntimeException: None of the basic classes could be loaded! Check your Soot class path! at soot.Scene.loadBasicClasses(Scene.java:1723) at soot.Scene.loadNecessaryClasses(Scene.java:1804) at soot.jimple.infoflow.android.SetupApplication.initializeSoot(SetupApplication.java:1183) at soot.jimple.infoflow.android.SetupApplication.runInfoflow(SetupApplication.java:1476) at soot.jimple.infoflow.android.SetupApplication.runInfoflow(SetupApplication.java:1451) at soot.jimple.infoflow.cmd.MainClass.run(MainClass.java:365) at soot.jimple.infoflow.cmd.MainClass.main(MainClass.java:258)

I want to use flowdroid command line, but error occurs. How can i solve this problem?

green-study commented 1 year ago

I found the cause. There was an error in android.jar . It just gives a warning and runs fine.

StevenArzt commented 1 year ago

For the Android JARs parameter -p, you should specify the platforms directory of your Android SDK installation, not a single JAR file. Note that you need the SDK with its directory layout, because FlowDroid needs to pick the right JAR.

green-study commented 1 year ago

thank you!