Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMisbhauddin Mohammed
3,834 Pointsnot working on android studio
I'm using Android Studio and I followed your instructions but it didn't work also I checked the other Question ( IF USING Android Studio) and it didn't work.
3 Answers
Joseph Ambrose
6,629 PointsI went around and around on this trying to get it to work using appCompat. Finally I gave up and went back to using the Holo theme. To do this you will need to change the support library in your gradle to the following:
compile 'com.android.support:support-v4:19.1.+'
Then you will need to go thru all of your themes to make sure they are using the Holo theme.
Then you need to go through all of you activities to make sure they are using the correct support library for the imports.
It is a little bit of a pain but works.
Slava Fleer
6,086 Pointsstrange. I did on Android studio exactly as in Ben video and all worked.
Dave Bond
1,180 PointsI had to choose "appcompat" as the style compatibility in the action bar style generator. That got everything working except the EditFriendsActivity and RecipientsActivity. I wasn't able to get the actionbar to show unless i went to the android manifest file under each of those activities and tried what someone else suggested and putting android:theme="@android:style/Theme.Holo.Light.DarkActionBar" under each one or else an action bar wouldn't show at all. Anyone have any ideas on a fix?
Timothy Boland
18,237 PointsTimothy Boland
18,237 PointsWas there a final resolution to this? Looks like Android Action Bar Style Generator has been deprecated since around October 2014 and is recommending using:
ToolBar: http://developer.android.com/reference/android/widget/Toolbar.html http://developer.android.com/reference/android/support/v7/widget/Toolbar.html