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
2
Answers
Add
maven { url 'https://jitpack.io' }
in build.gradle. follow below structure.then invalidate cache. i hope this will work for you.
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.