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

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

    Update all your library versions to 26.1.0 (to the most recent version) and also add:

    compile 'com.android.support:support-v4:26.1.0'
    

    if you are using Android Studio 3.0.0 and above then use

    implementation 'com.android.support:support-v4:26.1.0'
    

    Sync your project and the error will automatically resolve because ?attr/actionBarSize is part of v4 library.

提交回复
热议问题