11
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

Androidでプロジェクト生成時に自動でimportされるsupport-v7-appcompatを解除する

Androidでプロジェクト生成時に自動でimportされてしまう、support-v7-appcompatを解除します。

普通に設定からimportを外すだけだとエラーが発生してしまうので、stylesを変更します。

◆values/styles.xml
style name="AppBaseTheme" parent="Theme.AppCompat.Light"
  ↓
style name="AppBaseTheme" parent="android:Theme.Light"

◆values-v11/styles.xml
style name="AppBaseTheme" parent="Theme.AppCompat.Light"
  ↓変更
style name="AppBaseTheme" parent="android:Theme.Holo.Light"

◆values-v14/styles.xml
style name="AppBaseTheme"parent="Theme.AppCompat.Light.DarkActionBar"
  ↓変更
style name="AppBaseTheme"parent="android:Theme.Holo.Light.DarkActionBar"

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
11
Help us understand the problem. What are the problem?