Android Gradle插件0.13和android-apt 1.3出错

Android Gradle插件0.13和android-apt 1.3出错,第1张

概述我刚刚将我的 android gradle插件从0.12更新到0.13.此外,我已经下载了gradle 2.1.然后,我尝试使用android studio 0.8.9测试版,但根据 http://tools.android.com/tech-docs/new-build-system/version-compatibility,我必须使用至少android studio 0.8.11(金丝雀频道 @H_403_1@我刚刚将我的 android gradle插件从0.12更新到0.13.此外,我已经下载了gradle 2.1.然后,我尝试使用androID studio 0.8.9测试版,但根据 http://tools.android.com/tech-docs/new-build-system/version-compatibility,我必须使用至少androID studio 0.8.11(金丝雀频道).所以我已经更新了我的androID工作室,但我仍然有问题.

现在,我必须使用gradle 1.10和androID gradle插件0.12.上班

来自AS的错误

错误:没有这样的属性:类的projectDependencIEs:com.androID.build.gradle.internal.API.ApplicationVariantImpl_Decorated

编辑:

这是我的build.gradle

// top-level build file where you can add configuration options common to all sub-projects/modules.buildscript {    repositorIEs {        jcenter()    }    dependencIEs {        // works with 0.12.+ (not with 0.13.+)        classpath 'com.androID.tools.build:gradle:0.12.+'        // NOTE: Do not place your application dependencIEs here; they belong        // in the indivIDual module build.gradle files        // The latest version of the androID-apt plugin        classpath 'com.neenbedankt.gradle.plugins:androID-apt:1.3'    }}allprojects {    repositorIEs {        maven {  // For AndroID-VIEwPagerIndicator            url "http://dl.bintray.com/populov/maven"        }        jcenter()        mavenCentral()        maven {            url "http://JRAF.org/static/maven/2"        }    }}

这是我的gradle-wrapper.propertIEs

#Fri Sep 19 17:50:42 CEST 2014distributionBase=GRADLE_USER_HOMEdistributionPath=wrapper/distszipStoreBase=GRADLE_USER_HOMEzipStorePath=wrapper/dists# use gradle-2.1-all.zip with androID gradle plugin 0.13distributionUrl=http\://services.gradle.org/distributions/gradle-1.10-all.zip

编辑2:

apply plugin: 'com.androID.application'apply plugin: 'androID-apt'androID {    compileSdkVersion 19    buildToolsversion "20.0.0"    defaultConfig {        applicationID 'xxx'        minSdkVersion 10        targetSdkVersion 19        versionCode xxx        versionname 'xxx'    }    // For more information see    // @link http://tools.androID.com/tech-docs/new-build-system/user-guIDe#TOC-Using-sourceCompatibility-1.7    compileOptions {        sourceCompatibility JavaVersion.VERSION_1_7        targetCompatibility JavaVersion.VERSION_1_7    }    signingConfigs {        deBUG {            storefile file('../../KeyStore/deBUG.keystore')            storePassword 'androID'            keyAlias 'androIDdeBUGkey'            keyPassword 'androID'        }        release {            storefile file('xxx')            storePassword 'xxx'            keyAlias 'xxx'            keyPassword 'xxx'        }    }    buildTypes {        // Just intern. This is Alpha build        deBUG {            buildConfigFIEld "boolean","FORCE_GOOG_GEO_API","false"  // can be set to true in deBUG but not in other buildTypes            buildConfigFIEld "boolean","ENABLE_LOG","true"            buildConfigFIEld "String","HOST","\"xxx\""            versionnameSuffix '-Alpha'            signingConfig signingConfigs.deBUG            zipAlign true        }        // For customer        recette {            buildConfigFIEld "boolean","false"            buildConfigFIEld "boolean","false"            buildConfigFIEld "String","\"xxx\""            versionnameSuffix '-recette'            signingConfig signingConfigs.deBUG            zipAlign true        }        // PreProd        preprod {            buildConfigFIEld "boolean","\"xxx\""            signingConfig signingConfigs.deBUG            zipAlign true        }        // Prod        release {            buildConfigFIEld "boolean","\"xxx\""            signingConfig signingConfigs.release            zipAlign true            runProguard true            proguardfiles getDefaultProguardfile('proguard-androID.txt'),'proguard-project.txt'        }    }    // This is important,it will run lint checks but won't abort build    lintoptions {        abortOnError false        disable 'MissingTranslation'    }    packagingOptions {        exclude 'meta-inf/DEPENDENCIES'        exclude 'meta-inf/NOTICE'        exclude 'meta-inf/liCENSE'        exclude 'meta-inf/liCENSE.txt'        exclude 'meta-inf/NOTICE.txt'        exclude 'AndroIDManifest.xml'    }}apt {    arguments {        resourcePackagename androID.defaultConfig.packagename        androIDManifestfile variant.processResources.manifestfile    }}def GoogPlayServVersion = '5.0.+';def GsonVersion = '2.2.4';def libPhoneNumbVersion = '5.9';def GreenRobotVersion = '2.2.1';def OkhttpVersion = '2.0.0';def OkhttpConnVersion = '2.0.0';def JacksonCore = '2.4.1';def JacksonDatabind = '2.4.1';def JacksonAnnotations = '2.4.0';def SwitchVersion = '1.3.1';def CroutonVersion = '1.8.4';def ActionbarSherlockVersion = '4.4.0';def VIEwpagerIndicatorVersion = '2.4.1';def PicassoVersion = '2.3.4';def RoboSpiceVersion = '1.4.12';def StickyListheaders = '2.4.1';def AAVersion = '3.1';def RobotiumVersion = '5.2.1';dependencIEs {    // Include all jar in libs folder    compile filetree(dir: 'libs',include: ['*.jar'])    // Google Play Services    compile "com.Google.androID.gms:play-services:$GoogPlayServVersion"    // Gson    compile "com.Google.code.gson:gson:$GsonVersion"    // libphoneNumber    compile "com.Googlecode.libphonenumber:libphonenumber:$libPhoneNumbVersion"    // GreenRobot    compile "de.greenrobot:eventbus:$GreenRobotVersion"    // Okhttp [We use repackaged version @see https://github.com/square/okhttp/issues/967]    // compile "com.squareup.okhttp:okhttp:$OkhttpVersion"    // compile "com.squareup.okhttp:okhttp-urlconnection:$OkhttpConnVersion"    // Jackson    compile "com.fasterxml.jackson.core:jackson-core:$JacksonCore"    compile "com.fasterxml.jackson.core:jackson-databind:$JacksonDatabind"    compile "com.fasterxml.jackson.core:jackson-annotations:$JacksonAnnotations"    // Switch backport    compile "org.jraf:androID-switch-backport:$SwitchVersion"    // Crouton lib    compile("de.keyboardsurfer.androID.Widget:crouton:$CroutonVersion") {        // exclusion is not neccessary,but generally a good IDea.        exclude group: 'com.Google.androID',module: 'support-v4'    }    // You must install or update the Support Repository through the SDK manager to use this dependency.    // The Support Repository (separate from the corresponding library) can be found in the Extras category.    // compile 'com.androID.support:support-v4:19.1.0'    // compile 'com.androID.support:grIDlayout-v7:19.1.0'    // ActionbarSherlock    compile "com.actionbarsherlock:actionbarsherlock:$ActionbarSherlockVersion@aar"    // AndroID-VIEwPagerIndicator    compile "com.vIEwpagerindicator:library:$VIEwpagerIndicatorVersion@aar"    // Picasso    compile "com.squareup.picasso:picasso:$PicassoVersion"    // Robospice    compile "com.octo.androID.robospice:robospice:$RoboSpiceVersion"    // StickyList headers    compile "se.emilsjolander:stickyListheaders:$StickyListheaders"    // Facebook sdk    compile 'fr.avianey:facebook-androID-API:+@aar'    // androID annotations    compile "org.androIDannotations:androIDannotations-API:$AAVersion"    apt "org.androIDannotations:androIDannotations:$AAVersion"    compile 'com.sothree.slIDinguppanel:library:+'    // Tests part    androIDTestCompile "com.jayway.androID.robotium:robotium-solo:$RobotiumVersion"    compile "com.jayway.androID.robotium:robotium-solo:$RobotiumVersion"}

你知道我怎么解决这个问题?

谢谢

解决方法 androID-apt 1.3似乎与AndroID Gradle插件的v0.13不兼容.请改用androID-apt 1.4:
buildscript {    repositorIEs {        jcenter()    }    dependencIEs {        classpath 'com.androID.tools.build:gradle:0.13.0'        classpath 'com.neenbedankt.gradle.plugins:androID-apt:1.4'        // NOTE: Do not place your application dependencIEs here; they belong        // in the indivIDual module build.gradle files    }}
总结

以上是内存溢出为你收集整理的Android Gradle插件0.13和android-apt 1.3出错全部内容,希望文章能够帮你解决Android Gradle插件0.13和android-apt 1.3出错所遇到的程序开发问题。

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

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

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

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

发表评论

登录后才能评论

评论列表(0条)

保存