Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add support libraries?

I added android-support-v7-appcompat. Next I clicked on each file in directory \libs. Then I clicked android-support-v7-appcompat and opened properties. Next checked files from directory libs and unchecked Android Dependencies. Next opened properties of myproject. Went to the projects and by Add button added android-support-v7-appcompat.

But nothing is working. How can I make ActionBarActivity(there is no new variants) and how can I add a theme. I used to add in manifest to activity, tried to add it to the style.xml

enter image description herelast

like image 621
Евгений Смирнов Avatar asked Jul 26 '13 21:07

Евгений Смирнов


People also ask

How do you add a support library to the dependency section?

To add a support library to your project, modify your gradle build files to include the dependency to that library you found in the previous section. In Android Studio, make sure the Project pane is open and the Android tab is clicked. Expand Gradle Scripts, if necessary, and open the build. gradle (Module: app) file.

How do I manually update Play Support library?

In the Google Play Store, if you see "Install" at the top of the screen, tap that. If there's an update available, tap "Update" instead. If all you see is "Deactivate," then your Google Play services are already up to date.

How do I add the v7 Appcompat support library to my project?

In the Properties window, select the "Android" properties group at left and locate the Library properties at right. Select /path/to/appcompat/ and Click Remove. Click Add to open the Project Selection dialog. From the list of available library projects, select v7 appcompat library and click OK.


2 Answers

I solved my problem. It was hard to me to find add Library button.

I acted in wrong way. It is below. enter image description here

enter image description here

and here is a correct way. enter image description here

like image 138
Евгений Смирнов Avatar answered Sep 18 '22 04:09

Евгений Смирнов


Documentation for the new backwards-compatible ActionBar is at http://developer.android.com/guide/topics/ui/actionbar.html

To install the necessary library, follow the instructions at http://developer.android.com/tools/support-library/setup.html

Follow the instructions closely. You need the appcompat library, but the classes themselves are in android.support.v7.app.

like image 31
Joe Malin Avatar answered Sep 19 '22 04:09

Joe Malin