Closed Kostyshina closed 5 years ago
Root Cause Analysis: This issue happened because the java version used to compile code/Main
(inside apk-dependency-graph.jar) class is greater than your java version, which is 1.8.0 or 52.
The version 0.1.3 and 0.1.4 were compiled on "52 - Java SE 8" and 0.1.5 was compiled on "53 - Java SE 9". Because of that, your tests worked well using 0.1.3 and 0.1.4.
@Kostyshina For fix this issue:
@alexzaitsev Would you like compile and release a new version of 0.1.5 on the Java version 1.8.0 (52)?
@victorrattis thanks for such deep and precise analysis. I'm not sure what to do. What do you think, is it possible that someone could run it against java 7 and get this crash again? Anyway, seems that we should point a java version for each release in the release notes.. Doesn't seem convenient and simple... But as a temporary solution perhaps it's better just to recompile with java 8.
@victorrattis what do you think?
@Kostyshina I have fixed the apk in 0.1.5 release. Could you check, please?
Hi, thank you for your lib. I wanted to check my project with it but ./run.sh give that crash
I have compile oprions in build.gradle
The same is occurring for other project also. I have tried to change JDK location in my Android Studio to not embeded one but with new build I get the same error
I have also tried plugin for Android Studio, but after first graph generation (it was empty) now clicking on Generate Graph button make Android Studio to close itself
UPDATE Have checked it with version 0.1.3 and everything works fine (in 0.1.4 jar is missing so also working). Does it mean that to work with 0.1.5 version I need to decompile jar with 1.8 java ?