-1
我已經在Android Studio中的項目樣式現在我想用這個Eclipse項目,但使錯誤ColorPrimary,colorAccent取代在Eclipse
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
,並希望利用這個SDK
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="21" />
誤差
error: Error: No resource found that matches the given name: attr 'colorPrimaryDark'.
error: Error: No resource found that matches the given name: attr 'colorAccent'.
請問您可以添加錯誤的詳細信息? –
@soumyasambitKunda錯誤:錯誤:找不到與給定名稱相匹配的資源:attr'colorAccent'。 – sadegh
確保appcompact文件在appdata文件夾中可用 –