Hello!
When updated to version 1.7.0-Beta got error on mergeDebugJavaResource while building Android apk. (2 files found with path 'META-INF/versions/9/previous-compilation-data.bin')
There reason is that in both kotlinx-coroutines-android-1.7.0-Beta.jar and kotlinx-coroutines-core-jvm-1.7.0-Beta.jar there is existence of META-INF/versions/9/previous-compilation-data.bin.
While at 1.6.4 version this file exists only in kotlinx-coroutines-core-jvm.
kotlinx-coroutines-android depends on kotlinx-coroutines-core-jvm, so when add dependency to kotlinx-coroutines-android also got kotlinx-coroutines-core-jvm as transitive dependency.
Is it a bug or there should be changes from library user's side?
I think it is not the same issue. In case of 1.7.0-Beta it is imposible to solve it by excluding jvm dependency, cause android dependency depends on it.
j
jw
03/17/2023, 9:43 PM
That is not what the issue suggests
jw
03/17/2023, 9:43 PM
You can use packaging options to mark the file as excluded from the APK. It was never supposed to be in either artifact.
p
PHondogo
03/17/2023, 9:51 PM
It is ok as temporary workaround. But as for library user it is very strange doing such things instead of just declare dependency.