我尝试了所有方法但无法解决问题.. 最初更新无法通过 android studio 进行,所以我卸载了以前的版本并下载并安装了最新版本 3.1
下面是我构建gradle的代码
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
//implementation 'de.hdodenhof:circleimageview:2.1.0' // use this or use the latest compile version. In case u get bug.
implementation files('libs/picasso-2.5.2.jar')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:cardview-v7:26.1.0'
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.2'
implementation 'com.google.firebase:firebase-core:12.0.1'
implementation 'com.google.firebase:firebase-auth:12.0.1'
implementation 'com.google.firebase:firebase-messaging:12.0.1'
implementation 'com.android.support:support-v4:26.1.0'
implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
implementation 'com.google.android.gms:play-services-auth:12.0.1'
implementation 'pub.devrel:easypermissions:0.3.0'
implementation 'com.google.android.gms:play-services-drive:12.0.1'
implementation 'com.google.api-client:google-api-client:1.23.0'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation('com.google.api-client:google-api-client-android:1.23.0') {
exclude group: 'org.apache.httpcomponents'
}
implementation('com.google.apis:google-api-services-drive:v3-rev87-1.23.0') {
exclude group: 'org.apache.httpcomponents'
}
implementation 'com.synnapps:carouselview:0.1.4'
implementation 'com.prof.rssparser:rssparser:1.3.1'
implementation 'com.jakewharton.timber:timber:4.6.0'
testImplementation 'junit:junit:4.12'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.0@aar') {
transitive = true
}
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
implementation 'com.andrognito.patternlockview:patternlockview:1.0.0'
// Optional, for RxJava2 adapter
//compile 'com.andrognito.patternlockview:patternlockview-reactive:1.0.0'
}
apply plugin: 'com.google.gms.google-services'
最佳答案
我最近遇到了同样的问题。它似乎是检查与 firebase 服务本身的连接的按钮中的 IDE 错误。我不得不通过 firebase console 手动设置一个新项目.
关于android - 无法解析 Android 应用程序模块的 Gradle 配置。解决 gradle 构建问题和/或重新同步。?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49731251/