昨天将Android Studio升级到0.8.1, 竟然没法执行App了~
    Run窗口中显示:

Waiting for device.
Target device: lge-nexus_4-0262fa6d9d51c2e8

Event Log窗口显示:

NoSuchMethodError: com.android.builder.model.AndroidArtifact.getOutputs()Ljava/util/Collection;: com.android.builder.model.AndroidArtifact.getOutputs()Ljava/util/Collection;

折腾了很久, 不得要领. 后来想起Android Studio是采用解压安装包, 并覆盖原有目录方式升级的, 那么可能会是某个文件存在'新旧冲突'的可能. 于是一个个检查文件的时间戳, 发现只要在Android Studio目录下删除下面'旧'文件, 重启即可.

\android-studio\plugins\android\lib\builder-model-0.11.0.jar

因为Android Studio 0.8.1的Gradle用的是0.12.+了..

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
mavenCentral()
}
dependencies {
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
}
}

allprojects {
repositories {
mavenCentral()
}
}

<---- No Google Service ---->

唉, 何时Google Service才能畅快访问啊...

更多相关文章

  1. NPM 和webpack 的基础使用
  2. 【阿里云镜像】使用阿里巴巴DNS镜像源——DNS配置教程
  3. android的文件操作。(未整理完成)
  4. android读取assets大于1M文件的解决方法
  5. android圆形图片显示效果,带边框
  6. android中动画效果的运用
  7. android文件下载
  8. android 系统文件目录结构
  9. android 用沉浸式隐藏status bar

随机推荐

  1. DialogFragment自定义dialog的位置和大小
  2. Android进阶系列4—从LayoutInflater到se
  3. Unity Android使用相机拍摄照片并在其上
  4. Android开发如何验证输入的手机号码是否
  5. opencv实时视频帧在android中没有显示sob
  6. 通过数据库接口获取到的中文数据是问号怎
  7. 尽管在清单文件中指定了权限,但是ACCESS_F
  8. Android快速开发框架andbase
  9. Android开发一些实用的类、方法及接口(新
  10. Android 监听各个Acitivity的生命周期