Reputation: 1341
Assuming I'm making a new android project from scratch that targets API 15-21, do I really need the compile 'com.android.support:appcompat-v7:21.0.3'
in build.gradle
?
Can I remove it and not be worried about it?
Upvotes: 0
Views: 1329
Reputation: 1006614
do I really need the "compile 'com.android.support:appcompat-v7:21.0.3'" in build.gradle?
If you want a Material Design-styled action bar on API Level 7-20 (or, in your case, 15-20), then yes. Otherwise, for a minSdkVersion
of 15, usually you do not need it.
Can I remove it and not be worried about it?
You can remove it, but you may need to adjust Java classes (e.g., have your activities directly inherit from Activity
, not from ActionBarActivity
), menu resources (use android:
prefixes for everything, not app:
prefixes), and themes (make sure they do not inherit from Theme.AppCompat
). Basically, anything in the project that depends upon appcomat-v7
needs to be adjust to no longer depend upon stuff in appcompat-v7
.
Upvotes: 2