我一直在尝试通过 Gradle 为我的应用添加 FireBase UI。虽然由于某种原因我不断收到错误。我的所有“进口”都有正确的版本,
我更具体地收到“任务应用程序进程调试 list 执行失败”错误,不知道这意味着什么,我是 android dev 的新手。
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.0"
defaultConfig {
applicationId "com.example.jarvis_main.chatapptest"
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
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:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile 'com.android.support:design:26.+'
compile 'com.firebaseui:firebase-ui:2.0.0'
}
apply plugin: 'com.google.gms.google-services'
https://gyazo.com/5cef120f2ae2992dc0bf1f3b1e37a5c1
最佳答案
替换这个compile 'com.android.support:appcompat-v7:26.+'
有了这个
compile 'com.android.support:appcompat-v7:26.0.0-alpha1'
如果它给出了明显的合并错误,那么将它放在 build.gradle 中应用程序模块的末尾。
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '25.3.0'
}
}
}
}
关于android - 添加了firebase gradle问题,版本2.0.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44536276/