2015-12-02 67 views
4

我運行該應用程序時出現以下錯誤。任何人的幫助。錯誤:無法確定任務':app:crashlyticsStoreDeobsDebug'的依賴關係'

Error:Could not determine the dependencies of task ':app:crashlyticsStoreDeobsDebug'. Task with path 'dexDebug' not found in project ':app'.

+0

在這裏發表您buid.gradle文件 – curiousMind

+0

同樣的錯誤,任何解決方案? –

+0

嗨居然問題是android studio2.0 plz落後版本並測試它。 –

回答

4

如果您使用舊版本的Crashlytics gradle插件,則可能會出現此錯誤。 檢查您的build.gradle(在應用程序文件夾中),最上面的線是:

buildscript { 
    /*...*/ 
    dependencies { 
     classpath 'io.fabric.tools:gradle:1.+' 
    } 
} 

理想的情況下,請檢查什麼是最新的版本,並在此設置(而不是動態的,這使得搖籃分辨率稍慢)。

+1

與答案相反,固定版本應根據Crashlytics文檔使用_ //我們建議將其更改爲最新版本: // https://docs.fabric.io/android/changelog.html#fabric -gradle-plugin_ source:https://fabric.io/kits/android/crashlytics/install –

3

在地方的1 +利用面料搖籃插件的latest version -

dependencies { 
    classpath 'io.fabric.tools:gradle:1.+' 
} 

,你應該用這樣的方式 -

dependencies { 
     classpath 'io.fabric.tools:gradle:1.24.1' 
    } 

您的問題將得到解決是肯定的。 快樂編碼!