我一直试图通过Gradle为我的应用添加FireBase UI。虽然由于某种原因我不断收到错误。我的所有“导入”都有正确的版本, 我更具体地得到“任务应用程序进程调试清单执行失败”错误,并且不知道这意味着什么,我是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'
答案 0 :(得分:0)
替换此
compile 'com.android.support:appcompat-v7:26.+'
用这个
compile 'com.android.support:appcompat-v7:26.0.0-alpha1'
如果它给出了清单合并错误,那么将它放在build.gradle中app模块的末尾。
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'
}
}
}
}