Skip to content
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

Cannot build on version 0.4.1 #304

Closed
huupoke12 opened this issue Sep 5, 2023 · 1 comment · Fixed by #305
Closed

Cannot build on version 0.4.1 #304

huupoke12 opened this issue Sep 5, 2023 · 1 comment · Fixed by #305
Assignees
Labels
bug Something isn't working
Milestone

Comments

@huupoke12
Copy link

huupoke12 commented Sep 5, 2023

When I build with kotlinx-datetime:0.4.1 for Android, the build failed with the error:

Execution failed for task ':app:mergeDebugJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
   > 2 files found with path 'META-INF/versions/9/previous-compilation-data.bin' from inputs:
      - /home/huupoke12/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-datetime-jvm/0.4.1/684eec210b21e2da7382a4aa85e56fb7b71f39b3/kotlinx-datetime-jvm-0.4.1.jar
      - /home/huupoke12/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/atomicfu-jvm/0.21.0/ffdbefd57197da7e9f28e5135458809376f4f84/atomicfu-jvm-0.21.0.jar
     Adding a packagingOptions block may help, please refer to
     https://developer.android.com/reference/tools/gradle-api/8.1/com/android/build/api/dsl/ResourcesPackagingOptions
     for more information

kotlinx-datetime:0.4.0 is working fine for me.

@ilya-g ilya-g self-assigned this Sep 5, 2023
@ilya-g ilya-g added the bug Something isn't working label Sep 5, 2023
@ilya-g ilya-g closed this as completed in dbb153f Sep 6, 2023
@ilya-g ilya-g added this to the 0.4.2 milestone Sep 6, 2023
mvicsokolova added a commit to Kotlin/kotlinx-atomicfu that referenced this issue Sep 7, 2023
mvicsokolova added a commit to Kotlin/kotlinx-atomicfu that referenced this issue Sep 8, 2023
`previous-compilation-data.bin` is Gradle's internal machinery file that was packed in the resulting artifact because we depended directly on the output of `compileJavaModuleInfo` task, depending on `compileJavaModuleInfo.destinationDirectory` solves the problem.

Similar problems:
Kotlin/kotlinx-datetime#304
Kotlin/kotlinx.coroutines#3668
StylianosGakis added a commit to HedvigInsurance/android that referenced this issue Oct 24, 2023
kirmanak added a commit to kirmanak/Mealient that referenced this issue Oct 29, 2023
@shubhamsinghshubham777
Copy link

@ilya-g When is version 0.4.2 planned for release?

kirmanak added a commit to kirmanak/Mealient that referenced this issue Nov 5, 2023
* Use Ktor for network requests

* Remove V0 version

* Remove Retrofit dependency

* Fix url

* Update versions of dependencies

* Revert kotlinx-datetime

Due to Kotlin/kotlinx-datetime#304

* Rename leftovers

* Remove OkHttp

* Remove unused manifest

* Remove unused Hilt module

* Fix building empty image URLs

* Use OkHttp as engine for Ktor

* Reduce visibility of internal classes

* Fix first set up test

* Store only auth token, not header

* Remove UnitInfo/FoodInfo/VersionInfo/NewShoppingListItemInfo

* Remove RecipeSummaryInfo and ShoppingListsInfo

* Remove FullShoppingListInfo

* Remove ParseRecipeURLInfo

* Remove FullRecipeInfo

* Sign out if access token does not work

* Rename getVersionInfo method

* Update version name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants