当前位置: 首页 > 知识库问答 >
问题:

更新后分级同步失败

宗政兴发
2023-03-14

Android Studio要求我将gradle升级到3.5.1版本,但一旦我这样做了,它就不再同步了,尽管我没有报告任何明显的错误...

出现的唯一错误消息是“Gradle项目同步失败。基本功能(如编辑、调试)将无法正常工作。”

buildscript {
    ext.kotlin_version = '1.3.50'
    ext.anko_version='0.10.8'
    repositories {
        google()
        jcenter()

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.1'
        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
    }
}

allprojects {
    repositories {
        google()
        jcenter()

    }
}

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

和我的一些“idea.log”最后条目

2019-10-03 22:32:41,266 [e-1483-b03]   INFO - rationStore.ComponentStoreImpl - Saving Project 'C:\Users\mathe\Pictures\Design\ANDROID\ResistCalc' ResistCalcProjectCodeStyleConfiguration took 40 ms 
2019-10-03 22:32:41,266 [Alarm Pool]   INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 163 ms 
2019-10-03 22:32:46,056 [e-1483-b03]   WARN - un.AndroidRunConfigurationBase - Can't get application ID: Android module missing 
2019-10-03 22:32:46,056 [e-1483-b03]   WARN - un.AndroidRunConfigurationBase - Can't get application ID: Android module missing 
2019-10-03 22:32:46,056 [e-1483-b03]   WARN - un.AndroidRunConfigurationBase - Can't get application ID: Android module missing 
2019-10-03 22:32:46,056 [e-1483-b03]   WARN - un.AndroidRunConfigurationBase - Can't get application ID: Android module missing 

共有1个答案

阎伟志
2023-03-14

尝试文件->无效缓存/重新启动

 类似资料: