Jiaojiao - 2015-11-30

Hi everyone,

I try to instrument Android app with Emma. My steps are as follows:
1. getting jar with dex2jar
2. getting classes by decompressing the jar.
3. getting resources with apktool.
4. coping the classes under src and bin folders.
5. generating build.xml file with android update project --name project -t target -p projectfile
6. getting the debug version of the app with "ant debug"
7. cd bin, and instrument the classes with emma
8. converting .class into .dex file with dx --dex.
when I arrive the step 8, I get an error:!
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.util.ExceptionWithContext:no such label

My build environment:
windows: win7
java :jdk1.7
ant: 1.9.6
dex2jar: 2.0
apktool:2..0.2
android sdk: 19

I have no idea why this error happens. Did anyone have met this problem or just give me some help?

Thanks so much.