Cannot resolve symbol '?attr/actionBarSize' after updating Android Studio from 2.3 to 3.0 for buildToolsVersion '26.0.2'

后端 未结 16 2118
旧巷少年郎
旧巷少年郎 2021-01-30 08:00

After updating Android Studio from 2.3 to 3.0 I changed buildToolsVersion from 26.0.0 to 26.0.2 and after then I am getting this error:

Cannot reso         


        
相关标签:
16条回答
  • 2021-01-30 08:35

    This worked.

    I have updated the compile and support lib versions from 26.x.x to 27.x.x.

    0 讨论(0)
  • 2021-01-30 08:37

    Your buildToolsVersion version differs from version in dependencies (e.g. buildToolsVersion is 27.0.0 but implementation 'com.android.support:support-v4:27.0.1'). Make them the same.

    0 讨论(0)
  • 2021-01-30 08:40

    Changed all Support Library versions to the newest 27.1.1 and the error was gone.

    0 讨论(0)
  • 2021-01-30 08:41

    Nothing helped, but changing:

    ?attr/actionBarSize to ?android:attr/actionBarSize did the job.

    That's actually a bug in few versions. Even if you won't fix it, Android will automatically fix it at runtime.

    0 讨论(0)
提交回复
热议问题