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

后端 未结 16 2193
旧巷少年郎
旧巷少年郎 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:14

    Try to add this in your build.gradle(app) dependencies:

    resolutionStrategy {
        force libraries.support.appCompat
        force libraries.support.design
        force 'com.android.support:support-utils:26.0.1'
        force 'com.android.support:support-compat:26.0.1'
    }
    

提交回复
热议问题