flutter-webrtc / callkeep

iOS CallKit and Android ConnectionService for Flutter
MIT License
131 stars 142 forks source link

Could not find androidx.legacy:legacy-support-v4:27.1.1 #55

Closed xyzbilal closed 3 years ago

xyzbilal commented 3 years ago

Hi, My application cant be run when I want to run on android platform after adding callkeep . I am getting error below. I have no problem with example app to run but when I want to implement it to my I am getting error. maybe its not call keep related problem but I have no idea how to solve it. thanks for concern.

Launching lib/main.dart on SM J610F in debug mode...
 lib/main.dart
Plugin project :location_web not found. Please update settings.gradle.

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:processDebugResources'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not find androidx.legacy:legacy-support-v4:27.1.1.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.pom
       - https://dl.google.com/dl/android/maven2/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.jar
       - https://jcenter.bintray.com/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.pom
       - https://jcenter.bintray.com/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.jar
       - https://storage.googleapis.com/download.flutter.io/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.pom
       - https://storage.googleapis.com/download.flutter.io/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.jar
       - https://repo.maven.apache.org/maven2/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.pom
       - https://repo.maven.apache.org/maven2/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.jar
       - https://maven.google.com/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.pom
       - https://maven.google.com/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.jar
       - https://google.bintray.com/exoplayer/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.pom
       - https://google.bintray.com/exoplayer/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.jar
     Required by:
         project :app > project :callkeep
   > Could not find androidx.appcompat:appcompat:27.1.1.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.pom
       - https://dl.google.com/dl/android/maven2/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.jar
       - https://jcenter.bintray.com/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.pom
       - https://jcenter.bintray.com/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.jar
       - https://storage.googleapis.com/download.flutter.io/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.pom
       - https://storage.googleapis.com/download.flutter.io/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.jar
       - https://repo.maven.apache.org/maven2/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.pom
       - https://repo.maven.apache.org/maven2/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.jar
       - https://maven.google.com/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.pom
       - https://maven.google.com/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.jar
       - https://google.bintray.com/exoplayer/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.pom
       - https://google.bintray.com/exoplayer/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.jar
     Required by:
         project :app > project :callkeep
   > Could not find androidx.legacy:legacy-support-core-utils:27.1.1.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.pom
       - https://dl.google.com/dl/android/maven2/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.jar
       - https://jcenter.bintray.com/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.pom
       - https://jcenter.bintray.com/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.jar
       - https://storage.googleapis.com/download.flutter.io/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.pom
       - https://storage.googleapis.com/download.flutter.io/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.jar
       - https://repo.maven.apache.org/maven2/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.pom
       - https://repo.maven.apache.org/maven2/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.jar
       - https://maven.google.com/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.pom
       - https://maven.google.com/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.jar
       - https://google.bintray.com/exoplayer/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.pom
       - https://google.bintray.com/exoplayer/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.jar
     Required by:
         project :app > project :callkeep

also below error occurs when add call kep to project

 > Could not find androidx.legacy:legacy-support-v4:27.1.1.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.pom
       - https://dl.google.com/dl/android/maven2/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.jar
       - https://jcenter.bintray.com/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.pom
       - https://jcenter.bintray.com/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.jar
       - https://storage.googleapis.com/download.flutter.io/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.pom
       - https://storage.googleapis.com/download.flutter.io/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.jar
       - https://repo.maven.apache.org/maven2/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.pom
       - https://repo.maven.apache.org/maven2/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.jar
       - https://maven.google.com/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.pom
       - https://maven.google.com/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.jar
       - https://google.bintray.com/exoplayer/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.pom
       - https://google.bintray.com/exoplayer/androidx/legacy/legacy-support-v4/27.1.1/legacy-support-v4-27.1.1.jar
     Required by:
         project :app > project :open_file
   > Could not find androidx.appcompat:appcompat:27.1.1.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.pom
       - https://dl.google.com/dl/android/maven2/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.jar
       - https://jcenter.bintray.com/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.pom
       - https://jcenter.bintray.com/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.jar
       - https://storage.googleapis.com/download.flutter.io/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.pom
       - https://storage.googleapis.com/download.flutter.io/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.jar
       - https://repo.maven.apache.org/maven2/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.pom
       - https://repo.maven.apache.org/maven2/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.jar
       - https://maven.google.com/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.pom
       - https://maven.google.com/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.jar
       - https://google.bintray.com/exoplayer/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.pom
       - https://google.bintray.com/exoplayer/androidx/appcompat/appcompat/27.1.1/appcompat-27.1.1.jar
     Required by:
         project :app > project :local_auth > androidx.biometric:biometric:1.0.0-beta01
   > Could not find androidx.legacy:legacy-support-core-utils:27.1.1.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.pom
       - https://dl.google.com/dl/android/maven2/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.jar
       - https://jcenter.bintray.com/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.pom
       - https://jcenter.bintray.com/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.jar
       - https://storage.googleapis.com/download.flutter.io/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.pom
       - https://storage.googleapis.com/download.flutter.io/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.jar
       - https://repo.maven.apache.org/maven2/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.pom
       - https://repo.maven.apache.org/maven2/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.jar
       - https://maven.google.com/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.pom
       - https://maven.google.com/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.jar
       - https://google.bintray.com/exoplayer/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.pom
       - https://google.bintray.com/exoplayer/androidx/legacy/legacy-support-core-utils/27.1.1/legacy-support-core-utils-27.1.1.jar
     Required by:
         project :app > project :firebase_messaging > com.google.firebase:firebase-messaging:20.3.0 > com.google.android.gms:play-services-stats:17.0.0
         project :app > project :firebase_messaging > com.google.firebase:firebase-messaging:20.3.0 > com.google.firebase:firebase-iid:20.3.0
         project :app > project :firebase_core > com.google.firebase:firebase-core:17.5.1 > com.google.firebase:firebase-analytics:17.6.0 > com.google.android.gms:play-services-measurement:17.6.0
xyzbilal commented 3 years ago

There were some extra lines in android/build.gradle such as

subprojects {
    project.configurations.all {
        resolutionStrategy.eachDependency { details ->
            if (details.requested.group == 'androidx.core' &&
                    !details.requested.name.contains('androidx')) {
                details.useVersion "1.1.0"
            }
            if (details.requested.group == 'com.github.bumptech.glide'
                    && details.requested.name.contains('glide')) {
                details.useVersion "4.9.0"
            }
            if (details.requested.group == 'com.android.support'
                    && !details.requested.name.contains('multidex') ) {
                details.useVersion "27.1.1"
            }
        }
    }
}

commenting them solved my problem.