com.android.dx.cf.code.SimException: local 0004: invalid

GitHub | GoogleCodeExporter | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. com.android.dx.cf.code.SimException

    local 0004: invalid

    at com.android.dx.cf.code.OneLocalsArray.throwSimException()
  2. Android SDK's dx Tool
    Main.run
    1. com.android.dx.cf.code.OneLocalsArray.throwSimException(OneLocalsArray.java:244)[2010-06-04 18:40:22 - AndroidNativeTest]
    2. com.android.dx.cf.code.OneLocalsArray.get(OneLocalsArray.java:156)[2010-06-04 18:40:22 - AndroidNativeTest]
    3. com.android.dx.cf.code.BaseMachine.localArg(BaseMachine.java:206)[2010-06-04 18:40:22 - AndroidNativeTest]
    4. com.android.dx.cf.code.Simulator$SimVisitor.visitLocal(Simulator.java:533)[2010-06-04 18:40:22 - AndroidNativeTest]
    5. com.android.dx.cf.code.BytecodeArray.parseInstruction(BytecodeArray.java:337)[2010-06-04 18:40:22 - AndroidNativeTest]
    6. com.android.dx.cf.code.Simulator.simulate(Simulator.java:99)[2010-06-04 18:40:22 - AndroidNativeTest]
    7. com.android.dx.cf.code.Ropper.processBlock(Ropper.java:684)[2010-06-04 18:40:22 - AndroidNativeTest]
    8. com.android.dx.cf.code.Ropper.doit(Ropper.java:639)[2010-06-04 18:40:22 - AndroidNativeTest]
    9. com.android.dx.cf.code.Ropper.convert(Ropper.java:252)[2010-06-04 18:40:22 - AndroidNativeTest]
    10. com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:252)[2010-06-04 18:40:22 - AndroidNativeTest]
    11. com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:131)[2010-06-04 18:40:22 - AndroidNativeTest]
    12. com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:85)[2010-06-04 18:40:22 - AndroidNativeTest]
    13. com.android.dx.command.dexer.Main.processClass(Main.java:299)[2010-06-04 18:40:22 - AndroidNativeTest]
    14. com.android.dx.command.dexer.Main.processFileBytes(Main.java:278)[2010-06-04 18:40:22 - AndroidNativeTest]
    15. com.android.dx.command.dexer.Main.access$100(Main.java:56)[2010-06-04 18:40:22 - AndroidNativeTest]
    16. com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:229)[2010-06-04 18:40:22 - AndroidNativeTest]
    17. com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244)[2010-06-04 18:40:22 - AndroidNativeTest]
    18. com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:130)[2010-06-04 18:40:22 - AndroidNativeTest]
    19. com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:108)[2010-06-04 18:40:22 - AndroidNativeTest]
    20. com.android.dx.command.dexer.Main.processOne(Main.java:247)[2010-06-04 18:40:22 - AndroidNativeTest]
    21. com.android.dx.command.dexer.Main.processAllFiles(Main.java:183)[2010-06-04 18:40:22 - AndroidNativeTest]
    22. com.android.dx.command.dexer.Main.run(Main.java:139)[2010-06-04 18:40:22 - AndroidNativeTest]
    22 frames
  3. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[2010-06-04 18:40:22 - AndroidNativeTest]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[2010-06-04 18:40:22 - AndroidNativeTest]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[2010-06-04 18:40:22 - AndroidNativeTest]
    4. java.lang.reflect.Method.invoke(Method.java:597)[2010-06-04 18:40:22 - AndroidNativeTest]
    4 frames
  4. com.android.ide
    ApkBuilder.build
    1. com.android.ide.eclipse.adt.internal.sdk.DexWrapper.run(Unknown Source)[2010-06-04 18:40:22 - AndroidNativeTest]
    2. com.android.ide.eclipse.adt.internal.build.ApkBuilder.executeDx(Unknown Source)[2010-06-04 18:40:22 - AndroidNativeTest]
    3. com.android.ide.eclipse.adt.internal.build.ApkBuilder.build(Unknown Source)[2010-06-04 18:40:22 - AndroidNativeTest]
    3 frames
  5. Core Resource Management
    BuildManager$2.run
    1. org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:627)[2010-06-04 18:40:22 - AndroidNativeTest]
    1 frame
  6. Eclipse Core
    SafeRunner.run
    1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)[2010-06-04 18:40:22 - AndroidNativeTest]
    1 frame
  7. Core Resource Management
    BuildManager$1.run
    1. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)[2010-06-04 18:40:22 - AndroidNativeTest]
    2. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)[2010-06-04 18:40:22 - AndroidNativeTest]
    3. org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)[2010-06-04 18:40:22 - AndroidNativeTest]
    3 frames
  8. Eclipse Core
    SafeRunner.run
    1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)[2010-06-04 18:40:22 - AndroidNativeTest]
    1 frame
  9. Core Resource Management
    AutoBuildJob.run
    1. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)[2010-06-04 18:40:22 - AndroidNativeTest]
    2. org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)[2010-06-04 18:40:22 - AndroidNativeTest]
    3. org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)[2010-06-04 18:40:22 - AndroidNativeTest]
    4. org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)[2010-06-04 18:40:22 - AndroidNativeTest]
    5. org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)[2010-06-04 18:40:22 - AndroidNativeTest]
    5 frames
  10. Eclipse Jobs
    Worker.run
    1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    1 frame