wasiq hussain
wasiq hussain

Reputation: 21

Flutter: Execution failed for task ':flutter_webrtc:compileReleaseKotlin'

I tried to creating a build for my flutter app but it throws me an error. Can someone help?

Execution failed for task ':flutter_webrtc:compileReleaseKotlin'.

Error while evaluating property 'filteredArgumentsMap' of task ':flutter_webrtc:compileReleaseKotlin' Could not resolve all files for configuration ':flutter_webrtc:releaseCompileClasspath'. > Failed to transform android-104.5112.05.jar (com.github.webrtc-sdk:android:104.5112.05) to match attributes {artifactType=android-classes-jar, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-api}. > Could not find android-104.5112.05.jar (com.github.webrtc-sdk:android:104.5112.05). Searched in the following locations: https://jitpack.io/com/github/webrtc-sdk/android/104.5112.05/android-104.5112.05.jar

In project level build.gradle in add this ext.kotlin_version = '1.6.10' & classpath 'com.android.tools.build:gradle:7.1.2'

And in gradle/wrapper/gradle-wrapper.properties, i add this. distributionUrl=https://services.gradle.org/distributions/gradle-7.4-all.zip

Java Version: 17.0.6 connectycube_sdk: 2.3.0 Flutter Version: 3.7.6

enter image description here

Upvotes: 2

Views: 504

Answers (2)

Valentyn Tereshchenko
Valentyn Tereshchenko

Reputation: 636

If you use the Connectycube Flutter SDK in your project try to update it to the newest version (2.4.1) it should resolve your issue.

Upvotes: 1

Karamat Subhani
Karamat Subhani

Reputation: 252

Add maven { url 'https://jitpack.io' } in build.gradle. follow below structure.

allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' }
    }
}

then invalidate cache. i hope this will work for you.

Upvotes: 0

Related Questions