我收到此错误“任务':app:compileDebugJavaWithJavac'的执行失败。”

时间:2018-11-19 06:28:37

标签: android ios sdk

错误

  

失败:构建失败,并出现异常。

出了什么问题:

  

任务':app:compileDebugJavaWithJavac'的执行失败。    编译失败;有关详细信息,请参见编译器错误输出。

尝试:

  1. 使用--stacktrace选项运行以获取堆栈跟踪。
  2. 使用--info或--debug选项运行,以获取更多日志输出。

gradle.org

获得更多帮助
  

在54s79个可执行任务中建立失败:执行了79次

这是我的 build.gradle 。有帮助吗?

    apply plugin: 'com.android.application'
android {
    compileSdkVersion 26
    buildToolsVersion "28.0.3"
    defaultConfig {
        applicationId "com.tclm.app"
        minSdkVersion 16
        targetSdkVersion 26
        versionCode 4
        versionName "1.3"
        vectorDrawables.useSupportLibrary = true
        resConfigs "auto"
        manifestPlaceholders = [onesignal_app_id               : "01bab543-cce8-4e36-a755-6bc23fd66b7c",
                                // Project number pulled from dashboard, local value is ignored.
                                onesignal_google_project_number: "REMOTE"]
        multiDexEnabled true
        dexOptions {
            preDexLibraries = false
            javaMaxHeapSize "4g"
        }
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        debug {

        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')

    compile('com.mikepenz:fastadapter:2.6.3@aar') {
        transitive = true
    }
    compile 'com.android.support:appcompat-v7:26.0.2'
    compile 'com.android.support:cardview-v7:26.0.2'
    compile 'com.android.support:support-v4:26.0.2'
    compile 'com.android.support:animated-vector-drawable:26.0.2'
    compile 'com.android.support:design:26.0.2'
    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'com.synnapps:carouselview:0.1.4'
    compile 'com.mikepenz:fastadapter-commons:2.6.3@aar'
    compile 'com.mikepenz:fastadapter-extensions:2.6.3@aar'
    compile 'com.miguelcatalan:materialsearchview:1.4.0'
    compile 'org.jsoup:jsoup:1.10.3'
    compile 'com.thefinestartist:finestwebview:1.2.7'
    compile 'com.github.chrisbanes:PhotoView:1.3.1'
    compile 'com.fnp:material-preferences:0.1.4'
    compile 'com.thebluealliance:spectrum:0.7.1'
    compile 'com.firebaseui:firebase-ui-auth:2.3.0'
    compile 'com.google.firebase:firebase-messaging:11.2.2'
    compile 'com.google.firebase:firebase-crash:11.2.2'
    compile 'com.google.firebase:firebase-invites:11.2.2'
    compile 'com.google.firebase:firebase-ads:11.2.2'
    compile 'com.google.firebase:firebase-auth:11.2.2'
    compile 'com.google.firebase:firebase-core:11.2.2'
    compile 'com.google.android.gms:play-services-auth:11.2.2'
    compile 'com.onesignal:OneSignal:[3.6.0, 3.99.99]'
    compile 'com.android.support:multidex:1.0.1'
    // Required only if Facebook login support is required
    compile('com.facebook.android:facebook-android-sdk:4.22.1')

    // Required only if Twitter login support is required
    compile("com.twitter.sdk.android:twitter-core:3.0.0@aar") { transitive = true }
}
apply plugin: 'com.google.gms.google-services'

0 个答案:

没有答案