昨天将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. Android 文件存储--内部存储的例子
  2. android的文件操作。(未整理完成)
  3. android读取assets大于1M文件的解决方法
  4. android 系统文件目录结构
  5. Android 打开文件管理器 获取文件的真实路径
  6. Android 文件上传参考
  7. android SD卡文件变化监控
  8. Android学习笔记(11)————Android的私人文件夹的文件读写操作
  9. android一种较为复杂的布局参考(xml文件)

随机推荐

  1. 移动安全测试框架MobSF(二):动态分析
  2. Android(安卓)Studio 在 win7 下的安装
  3. 如何进入android的官方开发者网站
  4. Android之自定义View的死亡三部曲之(Layou
  5. Android(安卓)实现为点击事件添加震动效
  6. Android(安卓)增强版HashMap,使用软引用
  7. Android(安卓)Audio相关 AudioFlinger类
  8. Android(安卓)ant 命令行手动编译打包详
  9. Android(安卓)-wifi 直连(wifi direct )
  10. Android(安卓)使用Glide加载图片变色