# 常见问题

## ~~apk不支持rebuildDex模式~~
```
2019-09-26 16:20:37 stand : rebuild entry dex
2019-09-26 16:20:58 error : Exception in thread "main" org.jf.util.e: Exception occurred while writing code_item for method Lcom/xxxx;->xxx([Ljava/lang/String;)V
2019-09-26 16:20:58 error : 	at org.jf.dexlib2.h.g.a(Unknown Source)
2019-09-26 16:20:58 error : 	at org.jf.dexlib2.h.g.a(Unknown Source)
2019-09-26 16:20:58 error : 	at b.a.e.a.a(Unknown Source)
2019-09-26 16:20:58 error : 	at b.a.c.a.a(Unknown Source)
2019-09-26 16:20:58 error : 	at b.a.c.a.a(Unknown Source)
2019-09-26 16:20:58 error : 	at ratelentry.Main.main(Unknown Source)
2019-09-26 16:20:58 error : Caused by: org.jf.util.e: Error while writing instruction at code offset 0x1b
2019-09-26 16:20:58 error : 	at org.jf.dexlib2.h.g.a(Unknown Source)
2019-09-26 16:20:58 error : 	... 6 more
2019-09-26 16:20:58 error : Caused by: org.jf.util.e: Unsigned short value out of range: 65552
2019-09-26 16:20:58 error : 	at org.jf.dexlib2.h.f.b(Unknown Source)
2019-09-26 16:20:58 error : 	at org.jf.dexlib2.h.s.a(Unknown Source)
2019-09-26 16:20:58 error : 	... 7 more
2019-09-26 16:20:58 error : 
2019-09-26 16:20:58 stand : assemble ratel apk failed
2019-09-26 16:20:58 check apk build  output failed,output apk illegal!!
```
rebuidDex模式需要修改dex入口，如果入口dex某个索引超过65535，那么根据dex结构来说，无法完成注入。也就是说，这个场景下的apk，不支持rebuidDex引擎模式。

可以选择appDex或者shell

自ratelengine 1.2.4之后，这个问题不会发生