Android Studio 中的任务 :app:compileDebugJavaWithJavac 执行失败

2024-04-20

我正在 Android Studio 中开发 Android 应用程序。不太确定出了什么问题。几天前我已经成功构建了。任何帮助都会很棒。

这是错误:

Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

这是我的 build.gradle

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "21.1.2"

defaultConfig {
    multiDexEnabled true
    applicationId "com.tubbs.citychurchob"
    minSdkVersion 14
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
      proguardFiles getDefaultProguardFile('proguard-android.txt'),        'proguard-rules.pro'
    }
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile fileTree(dir: 'libs', include: 'Parse-*.jar')
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:cardview-v7:23.1.0'
compile 'com.parse.bolts:bolts-android:1+'
compile 'com.android.support:recyclerview-v7:23.1.0'
}

在 Android Studio 3.1 中,您可以在“构建”窗口中查看错误详细信息。

打开“构建”选项卡。它们有些隐藏,你必须扩展Java编译器节点。您会在那里看到错误。

但有更好的方法来查看错误。您可以单击“切换视图”按钮以更好地查看错误。这样您就不必扩展每个节点。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Android Studio 中的任务 :app:compileDebugJavaWithJavac 执行失败 的相关文章

随机推荐