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

前端 未结 11 1269
你的背包
你的背包 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:35

    Running ./gradlew assembleDebug command on Android Studio Terminal had solved my problem.

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

    You can run this command in your project directory. Basically it just cleans the build and gradle.

       cd android && rm -R .gradle && cd app && rm -R build
    

    In my case, I was using react-native using this as a script in package.json

    "scripts": { "clean-android": "cd android && rm -R .gradle && cd app && rm -R build" }
    
    0 讨论(0)
  • 2021-02-01 01:42

    build.gradle

    allprojects {
        repositories {
            google()
            mavenLocal()
            jcenter()
            maven {
                url 'https://maven.google.com'
            }
            maven {
                // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
                url "$rootDir/../node_modules/react-native/android"
            }
        }
    }
    
    0 讨论(0)
  • 2021-02-01 01:50

    Steps to fix:

    1. Run flutter clean in terminal.

    2. Run your app again.

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

    Full combo of build/ clean project + build/ rebuild project + file/ Invalidate caches / restart works for me!

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

    I was facing the same issue when integrating Firebase Cloud Store in my project. Inside the project level gradle, I added

    classpath 'com.google.gms:google-services:4.0.1'
    

    that fixed the issue.

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