Android Studio 3.1 Cannot Resolve Symbol (Themes, Widget, attr, etc.)

前端 未结 16 1941
梦如初夏
梦如初夏 2020-11-29 01:21

I upgraded Android Studio today to 3.1, and now Android Studio says it cannot resolve symbols for most of the resources (for example ThemeOverlay in style

16条回答
  •  有刺的猬
    2020-11-29 02:07

    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    implementation 'com.android.support:design:26.1.0'
    

    update your dependencies with the above in build.gradle(project)

    and put the below code in build.gradle(Module:app)

    classpath 'com.android.tools.build:gradle:3.1.1'
    classpath 'io.realm:realm-gradle-plugin:3.7.1'
    classpath 'com.google.gms:google-services:3.1.0'
    

提交回复
热议问题