Android-Studio: Gradle doesn't find HoloEverywhere -
after hours of fighting android-studio , holoeverywhere+actionbarsherlock, managed set up; holoeverywhere classes found in android-studio. however, upon "make" or "compile" of project, getting following errors:
gradle: error retrieving parent item: no resource found matches given name 'holo.theme'. gradle: no resource found matches given name: attr 'actionbarsize'. gradle: error retrieving parent item: no resource found matches given name 'holo.theme.light'. gradle: no resource found matches given name: attr 'actionbarsize'.
now, in themes.xml
file, create styles inherit holo.theme
, holo.theme.light
. did work in eclipse, , since holoeverywhere seems found , added dependency of project, why gradle not find these definitions?
the code is, usual:
<style name="mytheme" parent="holo.theme.light"> ... <item name="actionbarsize">48dip</item> <item name="android:actionbarsize">48dip</item> ... </style>
thank help!
by way, styles found android-studio, since doesn't complain in editor. when make or compile, these errors appear.
another thing, may help: tried removing holoeverywhere stuff xml, , compile, , gradle complained java classes. so, appears if gradle doesn't find of holoeverywhere. have add build.gradle or something?
add library resource path project's build.gradle file:
sourcesets { main { res.srcdirs = ['src/main/res','(library-res-path)'] } }
Comments
Post a Comment