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

Getting gradle sync error when using with ios #355

Closed
Tlaster opened this issue Jun 21, 2022 · 5 comments · Fixed by #364
Closed

Getting gradle sync error when using with ios #355

Tlaster opened this issue Jun 21, 2022 · 5 comments · Fixed by #364
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Tlaster
Copy link

Tlaster commented Jun 21, 2022

Get error when using with moko resources

> Failed to notify project evaluation listener.
   > Cannot change attributes of dependency configuration ':sample:common:iosArm64ApiElements' after it has been resolved
   > Cannot change attributes of dependency configuration ':sample:common:iosX64ApiElements' after it has been resolved

It happens when after adding moko resources, my gradle setup like this

plugins {
    kotlin("multiplatform")
    id("dev.icerock.mobile.multiplatform-resources") version "0.20.1"
}
kotlin {
    ios()
    sourceSets {
        val commonMain by getting
        val commonTest by getting
    }
}
multiplatformResources {
    multiplatformResourcesPackage = "moe.tlaster.common"
}

Gradle version: 7.4.2
Kotlin version: 1.6.21

Am I doing something wrong?

@Alex009
Copy link
Member

Alex009 commented Jun 23, 2022

can you create project where this bug reproduced and send here?

@Alex009 Alex009 added need-info Required more details about issue bug Something isn't working labels Jun 23, 2022
@Tlaster
Copy link
Author

Tlaster commented Jun 23, 2022

It's here https://github.com/Tlaster/moko-spotless-conflict
I think it might have a conflict with spotless, I can not apply moko resource with spotless at the same time.

@Alex009 Alex009 self-assigned this Jul 8, 2022
@Alex009 Alex009 removed the need-info Required more details about issue label Jul 8, 2022
Alex009 added a commit that referenced this issue Jul 8, 2022
@Alex009 Alex009 linked a pull request Jul 8, 2022 that will close this issue
Alex009 added a commit that referenced this issue Jul 8, 2022
@Alex009
Copy link
Member

Alex009 commented Jul 8, 2022

@Tlaster thanks, your project helps. i found cause of error and fix will be in next release

@asarazan
Copy link

Hi there! Noticed this fix went out back in July, and was hoping it would be possible to get a patch version published with the Spotless fix?

@Alex009
Copy link
Member

Alex009 commented Mar 3, 2023

will be released in 0.21.0

@Alex009 Alex009 closed this as completed Mar 3, 2023
@Alex009 Alex009 mentioned this issue Mar 25, 2023
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
Status: No status
Development

Successfully merging a pull request may close this issue.

3 participants