错误

Error:Unable to find method 'com.android.build.gradle.internal.variant.BaseVariantData.getOutputs()Ljava/util/List;'.Possible causes for this unexpected error include:
  • Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)"syncProject">Re-download dependencies and sync project (requires network)
  • The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem."stopGradleDaemons">Stop Gradle build processes (requires restart)
  • Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.```

解决办法

项目根录下build.gradle 将其中的kotlin 插件版本从 1.1.2-3 改成 1.1.2-4

buildscript {    //升级一下 Android studio3.0 必须使用这个    //Android Studio 2.3 则必须使用 1.1.2-2    ext.kotlin_version = '1.1.2-4'    repositories {        jcenter()    }    dependencies {        classpath 'com.android.tools.build:gradle:3.0.0-alpha1'        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"        // NOTE: Do not place your application dependencies here; they belong        // in the individual module build.gradle files    }}

更多相关文章

  1. Android开发插件Eclipse ADT
  2. android 多点触摸实现图片缩放
  3. Android中一些错误
  4. 64位Fedora中搭建Android环境没有兼容的32位包引起的错误的解决
  5. Android(安卓)源码编译
  6. android 4.3源码编译
  7. 【Arcgis for android】Error inflating class com.esri.android
  8. Android手机卫士(一)
  9. make: *** [out/host/linux-x86/obj/EXECUTABLES/emulator_inter

随机推荐

  1. Android开发框架afinal实践
  2. HackPorts – Mac OS X 渗透测试框架与工
  3. android内存统计
  4. apk打包和反编译四、为你的应用程序签名
  5. 开始: 其实对Android我只是略知皮毛中的皮
  6. ROOT android 原理 基于(zergRush)
  7. Android:Service:服务的生命周期
  8. android studio升级失败提示 Connection
  9. Android(安卓)sensor架构(二)SystemSensorM
  10. chromium-cronet库的编译用于Android和io