查看: 702|回复: 4

为什么总是编译失败?

[复制链接]

3

主题

7

帖子

40

积分

新手上路

Rank: 1

积分
40
发表于 2014-1-28 14:30:41 | 显示全部楼层 |阅读模式
我刚刚重装过了!
回复

使用道具 举报

3

主题

7

帖子

40

积分

新手上路

Rank: 1

积分
40
 楼主| 发表于 2014-1-28 14:31:20 | 显示全部楼层
在输出内容那里显示:
开始编译,请稍后……
正在编译代码:com/shoudiantong/主窗口.code

正在编译代码:com/shoudiantong/窗口1.code

正在生成文件:AndroidManifest.xml


UNEXPECTED TOP-LEVEL EXCEPTION:

com.android.dx.cf.code.SimException: immutable instance

        at com.android.dx.cf.code.BytecodeArray.parseInstruction(BytecodeArray.java:793)

        at com.android.dx.cf.code.Simulator.simulate(Simulator.java:99)
        at com.android.dx.c
f.code.Ropper.processBlock(Ropper.java:684)

        at com.android.dx.cf.code.Ropper.doit(Ropper.java:639)

        at com.android.dx.cf.code.Ropper.convert(Ropper.java:252)

        at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:252)
        at com.android.dx.d
ex.cf.CfTranslator.translate0(CfTranslator.java:131)

        at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:85)

        at com.android.dx.command.dexer.Main.processClass(Main.java:299)
        at com.android.dx.command.dexer.Main.processFileBytes(Main.java:27
8)

        at com.android.dx.command.dexer.Main.access$100(Main.java:56)

        at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:229)

        at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:134)
        at com.android.dx.cf.direct.ClassPa
thOpener.processDirectory(ClassPathOpener.java:190)

        at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:122)

        at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:190)
        at com.android.dx.cf.direct.ClassP
athOpener.processOne(ClassPathOpener.java:122)

        at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:190)

        at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:122)
        at com.android.dx.cf.direct.ClassPathOp
ener.process(ClassPathOpener.java:108)

        at com.android.dx.command.dexer.Main.processOne(Main.java:247)

        at com.android.dx.command.dexer.Main.processAllFiles(Main.java:183)

        at com.android.dx.command.dexer.Main.run(Main.java:139)
        at com.e4a.compiler.Compil
er.compile(Compiler.java:357)

        at com.e4a.compiler.Main.main(Main.java:30)

Caused by: com.android.dx.util.MutabilityException: immutable instance

        at com.android.dx.util.MutabilityControl.throwIfImmutable(MutabilityControl.java:77)
        at com.android.dx.cf.co
de.ExecutionStack.pop(ExecutionStack.java:214)

        at com.android.dx.cf.code.BaseMachine.popArgs(BaseMachine.java:125)

        at com.android.dx.cf.code.BaseMachine.popArgs(BaseMachine.java:152)
        at com.android.dx.cf.code.Simulator$SimVisitor.visitConstant(Simulator.
java:580)

        at com.android.dx.cf.code.BytecodeArray.parseInstruction(BytecodeArray.java:750)

        ... 24 more

...at bytecode offset 00000000
locals[0000]: Lcom/shoudiantong/主窗口;
...while working on block 0000...while working on method \u6309\u94ae2$\u88ab\u5
355\u51fb)V
...while processing \u6309\u94ae2$\u88ab\u5355\u51fb ()V
...while processing com/shoudiantong/主窗口.class



UNEXPECTED TOP-LEVEL EXCEPTION:

com.android.dx.cf.code.SimException: stack: underflow

        at com.android.dx.cf.code.ExecutionStack.throwSimException(ExecutionStack.java:303)

        at com.android.dx.cf.code.ExecutionStack.peek(ExecutionStack.java:189)
        at com.andr
oid.dx.cf.code.ExecutionStack.pop(ExecutionStack.java:216)

        at com.android.dx.cf.code.BaseMachine.popArgs(BaseMachine.java:125)

        at com.android.dx.cf.code.BaseMachine.popArgs(BaseMachine.java:152)
        at com.android.dx.cf.code.Simulator$SimVisitor.visitConstan
t(Simulator.java:580)

        at com.android.dx.cf.code.BytecodeArray.parseInstruction(BytecodeArray.java:750)

        at com.android.dx.cf.code.Simulator.simulate(Simulator.java:99)

        at com.android.dx.cf.code.Ropper.processBlock(Ropper.java:684)
        at com.android.dx.cf.c
ode.Ropper.doit(Ropper.java:639)

        at com.android.dx.cf.code.Ropper.convert(Ropper.java:252)

        at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:252)

        at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:131)
        at com.androi
d.dx.dex.cf.CfTranslator.translate(CfTranslator.java:85)

        at com.android.dx.command.dexer.Main.processClass(Main.java:299)

        at com.android.dx.command.dexer.Main.processFileBytes(Main.java:278)

        at com.android.dx.command.dexer.Main.access$100(Main.java:56)

        at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:229)

        at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:134)

        at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:190)

        at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:122)

        at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:190)

        at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:122)
        at c
om.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:190)

        at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:122)

        at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:108)
        at com.andro
id.dx.command.dexer.Main.processOne(Main.java:247)

        at com.android.dx.command.dexer.Main.processAllFiles(Main.java:183)

        at com.android.dx.command.dexer.Main.run(Main.java:139)

        at com.e4a.compiler.Compiler.compile(Compiler.java:357)
        at com.e4a.compiler.M
ain.main(Main.java:30)

...at bytecode offset 00000005
locals[0000]: Lcom/shoudiantong/窗口1;
locals[0001]: I
locals[0002]: Lcom/e4a/runtime/parameters/BooleanReferenceParameter;
locals[0003]: I
...while working on block 0004...while working on method \u7a97\
u53e31$\u6309\u4e0b\u67d0\u952eILcom/e4a/runtime/parameters/BooleanReferenceParameter;)V
...while processing \u7a97\u53e31$\u6309\u4e0b\u67d0\u952e (ILcom/e4a/runtime/parameters/BooleanReferenceParameter;)V
...while processing com/shoudiantong/窗口1.class


2 errors; aborting

Exception in thread "main" java.lang.IllegalStateException: Internal error

        at com.e4a.compiler.Compiler.internalError(Compiler.java:273)

        at com.e4a.compiler.Compiler.compile(Compiler.java:362)
        at com.e4a.compiler.Main.main(Main.java:3
0)

回复 支持 反对

使用道具 举报

3

主题

7

帖子

40

积分

新手上路

Rank: 1

积分
40
 楼主| 发表于 2014-1-29 20:50:34 | 显示全部楼层
为什么啊!怎么没人
回复 支持 反对

使用道具 举报

8

主题

348

帖子

1579

积分

资深会员

Rank: 6Rank: 6

积分
1579
发表于 2014-2-6 15:53:22 | 显示全部楼层
貌似开发环境没安装完全或没安装好。
回复 支持 反对

使用道具 举报

8

主题

348

帖子

1579

积分

资深会员

Rank: 6Rank: 6

积分
1579
发表于 2014-2-7 14:22:39 | 显示全部楼层
还有种情况就是组件的名称为空或者有特殊符号或者跟某些命令相同。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫描关注公众号,签到即可获得额外金币噢
快速回复 返回顶部 返回列表