Android Studio:Gradle构建已完成,但出现错误

Android Studio:Gradle构建已完成,但出现错误,第1张

概述我一直在使用AndroidStudio,但在尝试构建时出现此错误.我无法继续.这是AndroidStudio中的错误:Executingtasks:[:libraries:facebook:generateDebugSources,:library:generateDebugSources,:volley:generateDebugSources]Configurationondemandisanincubati

我一直在使用Android Studio,但在尝试构建时出现此错误.我无法继续.

这是AndroID Studio中的错误:

    Executing tasks: [:librarIEs:facebook:generateDeBUGSources, :library:generateDeBUGSources, :volley:generateDeBUGSources]    Configuration on demand is an incubating feature.    WARNING [Project: :volley] "testPackagename" is deprecated (and will soon stop working); change to "testApplicationID" instead    :librarIEs:facebook:preBuild    :librarIEs:facebook:preDeBUGBuild    :librarIEs:facebook:checkDeBUGManifest    :librarIEs:facebook:prepareDeBUGDependencIEs    :librarIEs:facebook:compileDeBUGAIDl UP-TO-DATE    :librarIEs:facebook:compileDeBUGRenderscript UP-TO-DATE    :librarIEs:facebook:generateDeBUGBuildConfig UP-TO-DATE    :librarIEs:facebook:generateDeBUGAssets UP-TO-DATE    :librarIEs:facebook:mergeDeBUGAssets UP-TO-DATE    :librarIEs:facebook:generateDeBUGResValues UP-TO-DATE    :librarIEs:facebook:generateDeBUGResources UP-TO-DATE    :librarIEs:facebook:packageDeBUGResources UP-TO-DATE    :librarIEs:facebook:processDeBUGManifest UP-TO-DATE    :librarIEs:facebook:processDeBUGResources UP-TO-DATE    :librarIEs:facebook:generateDeBUGSources UP-TO-DATE    :library:preBuild    :library:preDeBUGBuild    :library:checkDeBUGManifest    :library:prepareDeBUGDependencIEs    :library:compileDeBUGAIDl UP-TO-DATE    :library:compileDeBUGRenderscript UP-TO-DATE    :library:generateDeBUGBuildConfig UP-TO-DATE    :library:generateDeBUGAssets UP-TO-DATE    :library:mergeDeBUGAssets UP-TO-DATE    :library:generateDeBUGResValues UP-TO-DATE    :library:generateDeBUGResources UP-TO-DATE    :library:packageDeBUGResources UP-TO-DATE    :library:processDeBUGManifest UP-TO-DATE    :library:processDeBUGResources UP-TO-DATE    :library:generateDeBUGSources UP-TO-DATE    :volley:preBuild    :volley:preDeBUGBuild    :volley:checkDeBUGManifest    :volley:prepareDeBUGDependencIEs    :volley:compileDeBUGAIDl UP-TO-DATE    :volley:compileDeBUGRenderscript UP-TO-DATE    :volley:generateDeBUGBuildConfig UP-TO-DATE    :volley:generateDeBUGAssets UP-TO-DATE    :volley:mergeDeBUGAssets UP-TO-DATE    :volley:generateDeBUGResValues UP-TO-DATE    :volley:generateDeBUGResources UP-TO-DATE    :volley:packageDeBUGResources UP-TO-DATE    :volley:processDeBUGManifest UP-TO-DATE    :volley:processDeBUGResources UP-TO-DATE    :volley:generateDeBUGSources UP-TO-DATE

建立失败

总时间:2分钟7.494秒

这是我的应用程序gradle:

build.gradle:

        apply plugin: 'androID'    androID {        compileSdkVersion 19        buildToolsversion '19.1.0'        defaultConfig {            minSdkVersion 11            targetSdkVersion 19            versionCode 1            versionname '1.0'        }        signingConfigs {            release {            }        }        buildTypes {            release {                signingConfig signingConfigs.release            }        }        packagingOptions {            exclude 'meta-inf/DEPENDENCIES'            exclude 'meta-inf/NOTICE'            exclude 'meta-inf/liCENSE'            exclude 'meta-inf/liCENSE.txt'            exclude 'meta-inf/NOTICE.txt'            exclude 'meta-inf/ASL2.0'        }        productFlavors {        }    }    dependencIEs {        compile 'com.androID.support:support-v4:19.1.0'        compile 'com.Google.androID.gms:play-services:5.0.77'        compile 'com.androID.support:appcompat-v7:+'        compile 'com.makeramen:roundedimagevIEw:1.2.4'        compile 'com.nineoldandroIDs:library:2.4.0+'        compile project(':librarIEs:facebook')        compile project(':library')        compile project(':stripe')        compile project(':volley')        compile filetree(dir: 'libs', include: ['*.jar'])        compile files('libs/activation.jar')        compile files('libs/mail.jar')        compile files('libs/iprint.jar')    }

解决方法:

这个问题很旧,但对于AndroID Studio的新程序员来说可能很有用,
因此,在我的情况下,此错误通过从“构建”菜单清除项目来解决.

总结

以上是内存溢出为你收集整理的Android Studio:Gradle构建已完成,但出现错误全部内容,希望文章能够帮你解决Android Studio:Gradle构建已完成,但出现错误所遇到的程序开发问题。

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

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

原文地址: http://outofmemory.cn/web/1088405.html

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

发表评论

登录后才能评论

评论列表(0条)

保存