Android Studio无法运行项目:app:transformClassesWithDependencyCheckerForDebug

项目之前运行正常,后莫名出现的一个如下一个错误,项目运行不起来

Information:Gradle tasks [:app:clean, :app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources, :app:assembleDebug]
        Error:Execution failed for task ':app:transformClassesWithDependencyCheckerForDebug'.
        > org.gradle.api.internal.changedetection.rules.DescriptiveChange cannot be cast to org.gradle.api.tasks.incremental.InputFileDetails
        he may be corrupt (this sometimes occurs after a network connection timeout.)
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. 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. Information:BUILD FAILED Information:Total time: 13.259 secs Information:1 error Information:0 warnings Information:See complete output in console

    解决方法如下:

    切换项目至Project目录---->删除.gradle文件夹下的子文件----->重新运行编译即可

    Android Studio无法运行项目:app:transformClassesWithDependencyCheckerForDebug_第1张图片

    你可能感兴趣的:(Android Studio无法运行项目:app:transformClassesWithDependencyCheckerForDebug)