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

Android: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher / IOS: Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation) #79

Open
IbrahimHasan93 opened this issue Oct 8, 2024 · 2 comments
Assignees

Comments

@IbrahimHasan93
Copy link

IbrahimHasan93 commented Oct 8, 2024

In my flutter app am using pusher_client and when i upgraded kotlin version of the whole project i got this:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':pusher_client' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

my settings.gradle file looks like this:
pluginManagement {
def flutterSdkPath = {
def properties = new Properties()
file("local.properties").withInputStream { properties.load(it) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
return flutterSdkPath
}
settings.ext.flutterSdkPath = flutterSdkPath()

includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")

repositories {
    google()
    mavenCentral()
    gradlePluginPortal()
}

}

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
id "org.jetbrains.kotlin.android" version "1.9.20" apply false
id 'com.google.gms.google-services' version '4.4.2' apply false
}

include ":app"

in pubspec.yaml:
environment:
sdk: '>=3.2.6 <4.0.0'

in android/app/build.gradle:
compileSdkVersion 34
minSdkVersion 28
targetSdkVersion 34
signingConfig signingConfigs.debug
and in the dependencies:
dependencies {
implementation 'com.android.support:multidex:2.0.1'
implementation platform('com.google.firebase:firebase-bom:32.1.1')
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
implementation 'androidx.window:window:1.0.0'
implementation 'androidx.window:window-java:1.0.0'
}

as For IOS :
Error (Xcode): Building for 'iOS-simulator', but linking in object file (/../Documents/flutterApps/app/ios/Pods/Sodium/Sodium/libsodium/libsodium-ios.a[arm64]3) built for 'iOS'

Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)

Could not build the application for the simulator.
Error launching application on iPhone 11 pro max.

Can anyone help please?

@IbrahimHasan93 IbrahimHasan93 changed the title The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher Android: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher Oct 8, 2024
@IbrahimHasan93 IbrahimHasan93 changed the title Android: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher Android: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher / IOS: Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation) Oct 8, 2024
@sabbir420
Copy link

sabbir420 commented Oct 18, 2024

@IbrahimHasan93, I am facing the same issue. Have you managed to solve it yet? @chinloyal, please solve the problem as soon as possible. My project depends on this plugin.

@sabbir420
Copy link

@IbrahimHasan93 Intead of using pusher_client use pusher_channel_flutter package. That will solve the problem.
https://pub.dev/packages/pusher_channels_flutter

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

3 participants