2

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

  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Mar 16 '23 at 13:26

2 Answers2

1

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.

0

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.

Karamat Subhani
  • 104
  • 1
  • 7