gradle - Theme.AppCompat.Light.NoActionBar not found on Android Studio -
sorry maybe not new topic, need help, try many post this, problem still not fix, newbie android. try learn material design, use android lollipop, api level 22.
i try use compile 'com.android.support:support-v4:22.0.0'
. after sync gradle, still not able use theme.appcompat.light.noactionbar
theme on style.xml
file. gradle file:
apply plugin: 'com.android.application' android { compilesdkversion 22 buildtoolsversion '22.0.1' defaultconfig { applicationid "afnan.project.com.materialdesign" minsdkversion 21 targetsdkversion 22 versioncode 1 versionname "1.0" } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) com.android.support:support-v4:22.0.0' }
is there settings can try use theme, or main problem? pls tell me, need advice..
theme theme.appcompat.*
used define compatibility old android 2.x versions. requires support-v7
if need compatibility android 2.2 or 2.3 include in gradle build
compile 'com.android.support:support-v7:22.0.0'
or if build android-3.0 or later replace appcompat
holo
.
example
- theme.appcompat.light.noactionbar
becomes
- theme.holo.light.noactionbar
Comments
Post a Comment