[ant:jacocoReport] Classes in bundle 'xxx' do no match with execution data. For report generation the same class files must be used as at runtime.
[ant:jacocoReport] Execution data for class xxx does not match.
[ant:jacocoReport] Execution data for class xxx does not match.
[ant:jacocoReport] Execution data for class xxx does not match.
I saw so many webpage so I know what makes this error.
-------------------------------------------------------------------
What can cause different class ids?
Class ids are identical for the exact same class file only (byte-by-byte). There is a couple of reasons why you might get different class files. First compiling Java source files will result in different class files if you use a different tool chain:
Different compiler vendor (e.g. Eclipse vs. Oracle JDK)
Different compiler versions
Different compiler settings (e.g. debug vs. non-debug)
-------------------------------------------------------------------
However, in my development environment, the compilation environment is different.
I work in Ubuntu server. can not run Ubuntu GUI mode.
so I build source code in ubuntu. but build gradle is through android studio in windows.
and run following command in ubuntu.
./gradlew jacocoTestReport
can I receive reports properly in this environment?
how can i get report correctly?