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

Plugin breaks when installed with Android Gradle Plugin Alpha-07 / Android Studio Canary 7 #444

Open
chris-hatton opened this issue Feb 22, 2021 · 0 comments

Comments

@chris-hatton
Copy link

chris-hatton commented Feb 22, 2021

After upgrading Android Studio from 2020.3.1 Canary 6 to Canary 7, the Xcode plugin 'broke' - with IDE Gradle Sync failing on an OkHttp API that is incompatible with Kotlin Companion objects.

Ultimately this appears to be because the version of OkHttp used by the Xcode plugin is too old. I was able to work around this by replacing the dependency with a later OkHttp3 based one (and was lucky enough that the API is still compatible), here:

In top-level build.gradle:

buildscript {
    repositories { ... }
    dependencies { ... }
    configurations.all {
        resolutionStrategy.eachDependency {
            if (requested.group == "com.squareup.okhttp" && requested.name == "okhttp") {
                useTarget("com.squareup.okhttp3:okhttp:4.9.1")
            }
        }
    }
}

This workaround may help similarly affected users.
Suggest the Xcode plugin project updates the dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant