AndroidStudio错误local path doesn't exist解决办法

前两天在AndroidStudio开发的项目中使用EventBus.jar(一个很好用的事件分发和接收框架https://github.com/greenrobot/EventBus),但是在deploy的时候,一直出现这个错误:local path doesn't exist,搞了好久不知道哪里出问题,最后没办法,用Eclipse来编译运行。

今天又试着google了一把,找到一个看着靠谱的方法试了试,真给解决了,哈哈~~现在记录一下。

原文地址:http://stackoverflow.com/questions/18256177/android-studio-local-path-doesnt-exist

解决办法:

1:将build.gradle中的gradle版本改到0.6.+,如下

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.6.+'
    }
}

2:将gradle/wrapper/ gradle-wrapper.properties中改动如下,将版本改为1.8:

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.8-all.zip

3:同步,点击下面这个按钮:

enter image description here

4:重新编译项目,如果还有问题,试着执行File > Invalidate Caches/Restart。


我做完第三步后,就好了,如果大家用这个方法也没解决,那我也就无能为力了~~


  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 6
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值