Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/231.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 使用烟尘检测apk时出现regCount错误_Android_Instrumentation_Soot - Fatal编程技术网

Android 使用烟尘检测apk时出现regCount错误

Android 使用烟尘检测apk时出现regCount错误,android,instrumentation,soot,Android,Instrumentation,Soot,我正在使用烟尘检测apk文件。当我在运行coast.Main之前添加以下语句时(甚至没有创建body transformer),我得到一个regCount错误。(对于不同的apk文件,相同的错误出现在不同的方法中。) 我得到的错误是: Transforming android.support.v4.view.ViewConfigurationCompat$FroyoViewConfigurationVersionImpl... Exception in thread "main

我正在使用烟尘检测apk文件。当我在运行coast.Main之前添加以下语句时(甚至没有创建body transformer),我得到一个regCount错误。(对于不同的apk文件,相同的错误出现在不同的方法中。)

我得到的错误是:

    Transforming android.support.v4.view.ViewConfigurationCompat$FroyoViewConfigurationVersionImpl... 
    Exception in thread "main" java.lang.RuntimeException: regCount does not match the number of arguments of the method
       at org.jf.dexlib.Code.Format.Instruction35c.checkItem(Instruction35c.java:160)
       at org.jf.dexlib.Code.Format.Instruction35c.<init>(Instruction35c.java:69)
       at soot.toDex.instructions.Insn35c.getRealInsn0(Insn35c.java:96)
转换android.support.v4.view.ViewConfigurationCompat$FroyoViewConfigurationVersionImpl。。。
线程“main”java.lang.RuntimeException中的异常:regCount与方法的参数数不匹配
位于org.jf.dexlib.Code.Format.Instruction35c.checkItem(Instruction35c.java:160)
位于org.jf.dexlib.Code.Format.Instruction35c.(Instruction35c.java:69)
位于cooth.toDex.Insn35c.getRealInsn0(Insn35c.java:96)

提前感谢。

我的问题是由我试图添加的类代码引起的。这确实是一个微妙的问题:我使用了一个“Long”的ArrayList,但我的一些方法是添加/删除“Long”类型的变量。虽然Java执行装箱,而且我在执行Java代码时没有遇到问题,但这种差异在中间语言中是有问题的

    Transforming android.support.v4.view.ViewConfigurationCompat$FroyoViewConfigurationVersionImpl... 
    Exception in thread "main" java.lang.RuntimeException: regCount does not match the number of arguments of the method
       at org.jf.dexlib.Code.Format.Instruction35c.checkItem(Instruction35c.java:160)
       at org.jf.dexlib.Code.Format.Instruction35c.<init>(Instruction35c.java:69)
       at soot.toDex.instructions.Insn35c.getRealInsn0(Insn35c.java:96)