androidstudio加载项目问题

问题:To take advantage of all the latest features (such as Instant Run), improvements and security fixes, we strongly recommend that you update the Android Gradle plugin to version 3.0.1 and Gradle to version 4.1.  You can learn more about this version of the plugin from the release notes.


————————————————————清理项目,rebuild一下(问题分割线)


************还有问题************

问题Error:(29, 0) Could not find method implementation() for arguments [project ':app'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Open File



找到build文件,把下面这行代码注释掉

dependencies {
//    implementation project(':app')
}

—————————————————————清理项目,rebuild一下,然后运行(问题分割线)

Information:Gradle tasks [clean, :app:generateBaiduDebugSources, :app:generateBaiduDebugAndroidTestSources, :app:prepareBaiduDebugUnitTestDependencies, :app:mockableAndroidJar, :caldroidlibrary:generateDebugSources, :caldroidlibrary:generateDebugAndroidTestSources, :caldroidlibrary:mockableAndroidJar, :caldroidlibrary:prepareDebugUnitTestDependencies, :library:generateDebugSources, :library:generateDebugAndroidTestSources, :library:mockableAndroidJar, :library:prepareDebugUnitTestDependencies, :soulibrary:generateDebugSources, :soulibrary:generateDebugAndroidTestSources, :soulibrary:mockableAndroidJar, :soulibrary:prepareDebugUnitTestDependencies]


——————————————————————清理项目,rebuild一下,然后运行(问题分割线)

Error:Execution failed for task ':app:clean'.

> Unable to delete directory: D:\android\YiMinLodge\app\build\intermediates\incremental-verifier\baidu\debug\com\example\yimin\yiminlodge


关闭androidstudio。找到这个目录D:\android\YiMinLodge\app\build\   删除两个svn没有同步的文件夹。显示红色感叹号。删除。


————————————————————————————————————————————————

打开项目,清理并build。运行成功。这个项目导入的可够曲折的。


你可能感兴趣的:(android)