【Android Studio】Android Studio-使用过程中问题集锦

使用AS过程中 会遇到各种问题,记录下来,方便以后查阅。


问题:Error:Cause: org/gradle/api/publication/maven/internal/DefaultMavenFactoryAndroid

原因:当你使用的Gradle版本是2.4以上,Android插件版本是1.3.0以上的时候就会出现这个问题

解决:这时候你只需将android-maven-gradle-plugin插件版本改为classpath ‘com.github.dcendents:android-maven-gradle-plugin:1.3’ 和classpath 'com.github.dcendents:android-maven-plugin:1.2' 即可(注意:1.3必须在1.2的前面)

dependencies {
        classpath 'com.android.tools.build:gradle:1.2.3'
        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
        classpath 'com.github.dcendents:android-maven-plugin:1.2'
    }


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值