我知道我的这个问题已经被问过很多次了,我确实遵循了大部分答案,但这些答案都没有帮助我。所以这是我的问题,每当我同步我的项目时它总是失败。 Gradle 控制台如下所示:
执行任务:[:app:generateDebugSources,
:app:generateDebugAndroidTestSources,:app:mockableAndroidJar,
:app:prepareDebugUnitTestDependencies]
按需配置是一项正在孵化的功能。增量java
编译是一个孵化功能。 :app:preBuild 最新
:app:preDebugBuild 最新 :app:checkDebugManifest
:app:preReleaseBuild 最新
:app:prepareComAndroidSupportAnimatedVectorDrawable2420Library
最新:app:prepareComAndroidSupportAppcompatV72420Library
最新:app:prepareComAndroidSupportDesign2420Library 最新
:app:prepareComAndroidSupportMediarouterV72300Library 最新
:app:prepareComAndroidSupportRecyclerviewV72420库最新
:app:prepareComAndroidSupportSupportCompat2420Library 最新
:app:prepareComAndroidSupportSupportCoreUi2420Library 最新
:app:prepareComAndroidSupportSupportCoreUtils2420Library 最新
:app:prepareComAndroidSupportSupportFragment2420Library 最新
:app:prepareComAndroidSupportSupportMediaCompat2420Library 最新
:app:prepareComAndroidSupportSupportV42420库最新
:app:prepareComAndroidSupportSupportVectorDrawable2420Library
最新:app:prepareComGoogleAndroidGmsPlayServices940Library
最新:app:prepareComGoogleAndroidGmsPlayServicesAds940Library
最新
:应用程序:prepareComGoogleAndroidGmsPlayServicesAdsLite940Library
最新
:应用程序:prepareComGoogleAndroidGmsPlayServicesAnalytics940Library
最新
:应用程序:prepareComGoogleAndroidGmsPlayServicesAnalyticsImpl940Library
最新
:应用程序:prepareComGoogleAndroidGmsPlayServicesAppindexing940Library
最新
:应用程序:prepareComGoogleAndroidGmsPlayServicesAppinvite940Library
最新:app:prepareComGoogleAndroidGmsPlayServicesAuth940Library
最新
:应用程序:prepareComGoogleAndroidGmsPlayServicesAuthBase940Library
最新:app:prepareComGoogleAndroidGmsPlayServicesBase940Library
最新
:应用程序:prepareComGoogleAndroidGmsPlayServicesBasement940Library
最新:app:prepareComGoogleAndroidGmsPlayServicesCast940Library
最新
:应用程序:prepareComGoogleAndroidGmsPlayServicesCastFramework940Library
最新
:应用程序:prepareComGoogleAndroidGmsPlayServicesClearcut940Library
最新
:应用程序:prepareComGoogleAndroidGmsPlayServicesContextmanager940Library
最新:app:prepareComGoogleAndroidGmsPlayServicesDrive940Library
最新
:应用程序:prepareComGoogleAndroidGmsPlayServicesFitness940Library
最新:app:prepareComGoogleAndroidGmsPlayServicesGames940Library
最新:app:prepareComGoogleAndroidGmsPlayServicesGass940Library
最新:app:prepareComGoogleAndroidGmsPlayServicesGcm940Library
最新
:app:prepareComGoogleAndroidGmsPlayServicesIdentity940库失败:
构建失败并出现异常。
构建失败
总时间:7.518秒
这些是我的依赖
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.android.support:design:24.2.0'
compile 'com.google.android.gms:play-services:9.4.0'
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services-location:9.4.0'
compile 'com.google.android.gms:play-services-appindexing:9.4.0'
compile 'com.google.firebase:firebase-messaging:9.2.0'
compile 'com.google.firebase:firebase-database:9.0.2'
compile 'com.firebase:firebase-client-android:2.4.0'
compile 'com.google.firebase:firebase-core:9.4.0'
}
apply plugin: 'com.google.gms.google-services'
如何解决问题?
我已经删除了.gradle从项目中删除文件夹并能够再次重建它。
注意:做好备份,以防万一。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)