Open kjlee5435 opened 10 months ago
seems root cause : 2023-08-18T13:40:00.825+0900 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: java.io.IOException: Error while instrumenting org/hl7/fhir/r4/formats/JsonParser.class with JaCoCo 0.8.8.202204050719/5dcf34a. 2023-08-18T13:40:00.825+0900 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.jacoco.core.instr.Instrumenter.instrumentError(Instrumenter.java:161) 2023-08-18T13:40:00.826+0900 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.jacoco.core.instr.Instrumenter.instrument(Instrumenter.java:111) 2023-08-18T13:40:00.826+0900 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.jacoco.core.instr.Instrumenter.instrument(Instrumenter.java:136) 2023-08-18T13:40:00.826+0900 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] ... 121 more 2023-08-18T13:40:00.826+0900 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: org.objectweb.asm.ClassTooLargeException: Class too large: org/hl7/fhir/r4/formats/JsonParser 2023-08-18T13:40:00.826+0900 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.objectweb.asm.ClassWriter.toByteArray(ClassWriter.java:599) 2023-08-18T13:40:00.826+0900 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.jacoco.core.instr.Instrumenter.instrument(Instrumenter.java:92) 2023-08-18T13:40:00.826+0900 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.jacoco.core.instr.Instrumenter.instrument(Instrumenter.java:109) 2023-08-18T13:40:00.826+0900 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] ... 122 more
Also, for android project build, we need proper proguard guide.
For 6.6.0 we need to add
-dontwarn com.ctc.wstx.stax.WstxInputFactory -dontwarn com.ctc.wstx.stax.WstxOutputFactory
I think some more keep rules are need for this proejct..
Recent 6.8.0 are not build on android due to guava and 6.6.2 also not build due to fastxml.
Describe the bug build error
To Reproduce Steps to reproduce the behavior:
Expected behavior no error
Environment (please complete the following information): implementation ('ca.uhn.hapi.fhir:hapi-fhir-structures-r4:6.6.0') implementation ("ca.uhn.hapi.fhir:hapi-fhir-android:6.6.0")