Cannot access class 'com.google.common.util.concurrent.ListenableFuture'. Check your module classpath for missing or conflicting dependencies
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 38/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Domaine
- build-system, mobile-dev
Piste de recherche
Commencez par la ligne 78 de RecordingFragment.kt de l’exemple cameraXvideo et examinez les dépendances de build.gradle du module de l’application. Reproduisez le build et comparez les déclarations de CameraX, Kotlin, coroutines et concurrent-futures présentées dans le rapport. C’est terminé lorsque l’exemple se compile et que l’appel await de ProcessCameraProvider est résolu sans les erreurs de classpath ou de référence signalées.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Hi, I'm trying to make the sample cameraXvideo work however , the build fails and gives this error:
e: app/RecordingFragment.kt: (78, 82): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public suspend inline fun Operation.await(): Operation.State.SUCCESS defined in androidx.work
the line that causes this issue is : val cameraProvider = ProcessCameraProvider.getInstance(requireContext()).await()
this is my build.gradle:
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'com.github.node-gradle.node'
id("com.apollographql.apollo").version("2.5.9")
}
apply plugin: 'com.github.node-gradle.node'
apply plugin: 'kotlin-kapt'
apply plugin: 'androidx.navigation.safeargs'
def cognitoWebClient
def apikeyPropertiesFile = rootProject.file("secrets.properties")
def apikeyProperties = new Properties()
apikeyProperties.load(new FileInputStream(apikeyPropertiesFile))
android {
compileSdk 31
defaultConfig {
applicationId "beatview.android.huru"
minSdk 21
targetSdk 31
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
buildConfigField("String", "cognitoWebClient", apikeyProperties['cognitoWebClient'])
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
coreLibraryDesugaringEnabled true
}
buildFeatures {
viewBinding true
}
dataBinding {
enabled = true
}
}
dependencies {
implementation("app.futured.donut:donut:2.2.0")
implementation 'com.github.stfalcon:swipeable-button:0.1.0'
implementation 'me.zhanghai.android.materialratingbar:library:1.4.0'
implementation 'com.diogobernardino:williamchart:3.11.0'
implementation 'com.diogobernardino.williamchart:tooltip-slider:3.11.0'
implementation 'com.github.Akshay-Katariya:CurveBottomBar:1.0'
implementation "com.google.android.gms:play-services-auth:19.2.0"
implementation 'com.gauravk.bubblenavigation:bubblenavigation:1.0.7'
implementation 'io.ak1:bubbletabbar:1.0.8'
implementation 'com.ebanx:swipe-button:0.4.0'
implementation 'com.dmitrymalkovich.android:progress-fab:1.6'
implementation 'com.github.simformsolutions:SSCustomBottomNavigation:3.2'
implementation 'com.an.otpview:otpview:0.1.0'
implementation 'com.pawegio.kandroid:kandroid:0.8.7@aar'
implementation 'com.google.android.material:material:1.0.0'
implementation 'com.longer:verifycode:1.0.4'
implementation 'com.github.imkarl:CharacterPickerView:v0.2.8'
implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
implementation 'com.github.aabhasr1:OtpView:v1.1.2'
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
implementation 'com.github.DavidProdinger:weekdays-selector:1.1.1'
implementation "com.airbnb.android:lottie-compose:4.2.0"
implementation "androidx.fragment:fragment-ktx:1.4.0"
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
implementation 'androidx.annotation:annotation:1.3.0'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.4.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0'
implementation "androidx.lifecycle:lifecycle-compiler:2.4.0"
implementation 'com.github.armcha:SpaceNavigationView:1.6.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.github.WShaobin:VerificationCodeInputView:1.0.2'
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5'
//cameraX
implementation 'androidx.camera:camera-view:1.0.0-alpha32'
implementation 'androidx.camera:camera-video:1.1.0-alpha12'
implementation 'androidx.camera:camera-lifecycle:1.1.0-alpha12'
//tests
testImplementation 'junit:junit:'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
//aws dependencies
implementation "com.amazonaws:aws-android-sdk-core:2.36.0"
implementation "com.amazonaws:aws-android-sdk-auth-core:2.36.0"
implementation("com.amazonaws:aws-android-sdk-auth-userpools:2.35.0@aar") { transitive = true }
implementation "com.amazonaws:aws-android-sdk-cognitoidentityprovider:2.36.0"
implementation "com.amazonaws:aws-android-sdk-pinpoint:2.35.0"
implementation 'com.amplifyframework:aws-auth-cognito:1.30.0'
implementation 'com.amplifyframework:aws-api:1.28.3'
implementation 'com.amplifyframework:aws-datastore:1.30.0'
implementation 'com.amplifyframework:aws-storage-s3:1.28.3'
// Java
implementation 'androidx.core:core:1.7.0'
// Kotlin lang
implementation 'androidx.core:core-ktx:1.7.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.10"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2'
implementation "androidx.concurrent:concurrent-futures-ktx:1.1.0"
// Mobile Client for initializing the SDK
implementation('com.amazonaws:aws-android-sdk-mobile-client:2.36.0@aar') { transitive = true }
implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.0'
implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'
implementation 'com.amazonaws:aws-android-sdk-appsync:3.2.1'
implementation("com.apollographql.apollo:apollo-runtime:2.5.9")
implementation("com.apollographql.apollo:apollo-coroutines-support:2.5.9")
implementation 'com.facebook.android:facebook-login:latest.release'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
implementation 'com.github.bumptech.glide:glide:4.12.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
//work manager dep for notifications
// (Java only)
implementation("androidx.work:work-runtime:2.7.1")
// Kotlin + coroutines
implementation("androidx.work:work-runtime-ktx:2.7.1")
//jetpack for permission handling
implementation "com.google.accompanist:accompanist-permissions:0.21.1-beta"
}
`
- Langage dominant
- Kotlin
- Étoiles
- 5.5k
- Forks
- 2.4k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de android/camera-samples
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
android/camera-samples#546 ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
android/camera-samples#545 · 1 commentaire ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 30/100
android/camera-samples#544 ·
-
Does CameraX plan to support USB Camera? When was the launch date? Someone raised Issues in 2019Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 15/100
android/camera-samples#543 · 2 commentaires · 1 réaction ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
android/camera-samples#542 · 1 commentaire ·
Toutes les issues de android/camera-samples
Issues similaires
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 92/100
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 92/100
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 95/100
-
[TR] Turkish Translation Improvements for Skip Types / Türkçe Atla Türleri Çeviri DüzeltmesiOuvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
recloudstream/cloudstream#3226 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Kotlin/kotlinx.serialization#3277 · 2 réactions ·
Les mainteneurs répondent en général sous 1 jour