将Android Studio从2.3更新到3.0后,我buildToolsVersion
从26.0.0 更改为26.0.2,然后出现此错误:
Cannot resolve symbol '?attr/actionBarSize
xml代码:
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/colorPrimary"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
app:titleTextColor="@android:color/white"/>
依存关系:
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support:design:26.1.0'