Cannot resolve symbol Theme, ThemeOverlay

前端 未结 7 1859
清酒与你
清酒与你 2020-12-17 09:17

I updated my android studio to latest version - 3.0.1. Since then it complains \'Cannot resolve symbol\' for Theme and ThemeOverlay in the following lines of code. App runs

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-17 09:52

    1. In the app/build.gradle remove the line responsible for the appcompat package (something like implementation 'com.android.support:appcompat-v7:27.1.1')
    2. Perform the Gradle sync. It will break and show a lot of errors
    3. Bring the original line back
    4. Perform the Gradle sync once again

    This will magically solve the problem that for no reason appeared in the 3.0.1

提交回复
热议问题