Could not determine the dependencies of task ':app:crashlyticsStoreDeobsDebug' if I enable the proguard

前端 未结 11 1270
你的背包
你的背包 2021-02-01 01:11

I get following error when I was running an app within Android Studio 2.

Gradle tasks [:app:assembleDebug]
Could not determine the dependencies of task \':app:cr         


        
相关标签:
11条回答
  • 2021-02-01 01:52

    I was encountering the same issue. In my App build.gradle I had

    apply plugin: 'com.android.application'
    apply plugin: 'dexguard'
    apply plugin: 'io.fabric'
    

    I just switched Dexguard and Fabric, then it worked!

    apply plugin: 'com.android.application'
    apply plugin: 'io.fabric'
    apply plugin: 'dexguard'
    
    0 讨论(0)
  • 2021-02-01 01:52

    For some of you skipping library will works

    project(":libABC") {
        apply plugin: 'org.sonarqube'
        sonarqube {
            skipProject = true
        }
    }
    
    0 讨论(0)
  • I had similar issue with below error:

    Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
    

    It started when I added below dependency in Gradle:

        implementation 'com.google.android.gms:play-services-tagmanager:11.0.4'
    

    I fixed it by upgrading the dependency version as below:

    implementation 'com.google.android.gms:play-services-tagmanager:17.0.0'
    
    0 讨论(0)
  • 2021-02-01 01:58

    I had the same issue a few days ago and I found this thread Twitter Developer Forum that points to some incompatibility with versions of gradle/build-tools/crashalics.

    My problem was slightly different from yours as I'm not using alpha-3 I'm using 1.5. But on my update I also changed to the latest gradle distribution gradle-2.9-all.zip.

    So probably/maybe you can fix it by changing to the latest gradle version. But If it does not work, you'll really have to be patient and wait until build tools V2.0 is not in alpha anymore OR the Crashalitycs team, fix the incompatibility.

    0 讨论(0)
  • 2021-02-01 02:01

    In place of 1.+ use the latest version of crashlytics -

     dependencies {
            classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+'
        }
    

    you should use this way -

    dependencies {
                classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:2.6.8'
            }
    

    your problem will be resolved for sure. Happy coding !!

    0 讨论(0)
提交回复
热议问题