任务执行失败:app:compileDebugJavaWithJavac

任务执行失败:app:compileDebugJavaWithJavac,第1张

概述我拿起别人的项目,当我要求AS在我的AVD上运行项目时,会d出一个错误: Error:Execution failed for task ‘:app:compileDebugJavaWithJavac’. Compilation failed; see the compiler error output for details. 这是我的build.gradle apply plugin: 'co 我拿起别人的项目,当我要求AS在我的AVD上运行项目时,会d出一个错误:

Error:Execution Failed for task ‘:app:compileDeBUGJavaWithJavac’.

Compilation Failed; see the compiler error output for details.

这是我的build.gradle

apply plugin: 'com.androID.application'androID {compileSdkVersion 23buildToolsversion "23.0.2"defaultConfig {    applicationID 'ca.gggolf.aminutegolf'    minSdkVersion 19    targetSdkVersion 23    versionCode 1    versionname "1.0"}buildTypes {    release {        MinifyEnabled false        proguardfiles getDefaultProguardfile('proguard-androID.txt'),'proguard-rules.pro'    }}productFlavors {}}dependencIEs {compile filetree(include: ['*.jar'],dir: 'libs')testCompile 'junit:junit:4.12'compile 'com.androID.support:appcompat-v7:23.1.1'}

我不知道该怎么办..一切顺利,应用程序在几年前工作,当它是第一次做.

谢谢

解决方法 为您的项目启用multIDex.将下面的行添加到defaultconfig中:
multIDexEnabled true

还可以对gradle的依赖项添加多重依赖关系:

compile 'com.androID.support:multIDex:1.0.1'
总结

以上是内存溢出为你收集整理的任务执行失败:app:compileDebugJavaWithJavac全部内容,希望文章能够帮你解决任务执行失败:app:compileDebugJavaWithJavac所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1133985.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-30
下一篇2022-05-30

发表评论

登录后才能评论

评论列表(0条)

    保存