New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jacoco 0.8.2 does work with Android Studio 3.2.1 Instant Run #779
Comments
As you can see - exception originates from
Code of BasicInterpreter interpreter = new BasicInterpreter() { which is incorrect according to Javadoc of constructor /**
* Constructs a new {@link BasicInterpreter} for the latest ASM API version. <i>Subclasses must
* not use this constructor</i>. Instead, they must use the {@link #BasicInterpreter(int)}
* version.
*/
public BasicInterpreter() {
super(ASM6);
if (getClass() != BasicInterpreter.class) {
throw new IllegalStateException();
}
} Clearly this should be reported to developers of Android SDK - https://developer.android.com/studio/report-bugs.html One might wonder why exception doesn't happen without last line in
And the reason is similar to #639 (comment) - multiple ASM versions in classpath:
To avoid such classpath issues, developers of Android SDK can reconsider the way they execute JaCoCo and for example use dedicated ClassLoader. As a possible workaround you can try to use JaCoCo 0.8.1 that depends on ASM 6.0 |
Issue filed to Google at https://issuetracker.google.com/issues/118709917 |
Change to JaCoCo 0.8.1 Helps, THANK YOU! |
Thansk @Godin 0.8.1 worked. |
@Godin Why is this closed if 0.8.3 still suffers from the same issue? |
@Malachiasz because as already explained in #779 (comment) the problem is not in JaCoCo, but in Android SDK |
This is a issue tracker. Please use our mailing list for general questions:
https://groups.google.com/forum/?fromgroups=#!forum/jacoco
Also check FAQ before opening an issue: http://www.jacoco.org/jacoco/trunk/doc/faq.html
Steps to reproduce
As per https://stackoverflow.com/questions/53056062/android-studio-3-2-1-instant-run-doesnt-work-with-jacoco-0-8-2.
JaCoCo version: 0.8.2
Operating system: Android Studio 3.2.1
Expected behaviour
Should compile fine and works
Actual behaviour
Fail during compile at :app:transformClassesWithInstantRunForDebug
The text was updated successfully, but these errors were encountered: