【发布时间】:2017-04-19 09:11:41
【问题描述】:
错误:任务 ':app:compileDebugJavaWithJavac' 执行失败。 编译失败;有关如何修复此错误的详细信息,请参阅编译器错误输出,请回答我
我的build.gradle
apply plugin: 'com.android application'
android {
compileSdkVersion 25
buildToolsVersion '25.0.2'
defaultConfig {
applicationId "com.example.mayur.mahadev"
minSdkVersion 22
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
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:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.firebase:firebase-client-android:2.5.2'
compile 'com.firebaseui:firebase-ui:0.4.3'
compile 'com.google.firebase:firebase-database:10.0.1'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services' ?>
如何解决这个错误请帮助我
【问题讨论】:
-
添加您的 gradle 错误的详细信息。
-
错误:任务 ':app:compileDebugJavaWithJavac' 执行失败。编译失败;查看编译器错误输出;;;我在消息视图中收到此错误..
-
请看下面的答案。
标签: android android-gradle-plugin build.gradle javac firebaseui