Android studio升级到了3.5版本,出现的异常

问题:

This file is not part of the project. Please include it in the appropriate build file(build.gradle,CMakeLists.txt or Android.mk etc.) and sync the project.

解决方式:

升级了相应的gradle配置:

1.把项目根目录的build.gradle的 

 classpath 'com.android.tools.build:gradle:3.2.0'

升级到目前最新版本

classpath 'com.android.tools.build:gradle:3.5.0'

以及

classpath"org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71"

升级到目前最新版本

classpath"org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.41"


2.gradle/wrapper/gradle-wrapper.properties的

distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

升级到目前最新版本

distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip

你可能感兴趣的:(Android studio升级到了3.5版本,出现的异常)