Android工作室错误。无法创建TransformedFileCache类型的服务

时间:2018-01-02 12:44:18

标签: android gradle android-gradle android-studio-3.0

我刚刚将我的Android工作室更新到2.3.3到3.0.1。重新启动后,它让我更新我的gradle。更新为gradle到版本4.1后,它现在给出以下错误 -

  

错误:(7,1)评估根项目时出现问题   '的Xyz'

     
    

无法使用.createTransformedFileCache()创建TransformedFileCache类型的服务。

  

我的build.xml如下 -

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        classpath 'com.google.gms:google-services:3.0.0'
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

此外,我的项目无法进行gradle同步并发出以下错误 -

  

Gradle sync失败:在锁定文件中找到意外的锁定协议。预计3,发现0。

0 个答案:

没有答案