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
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.
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.
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.
I solved my problem. It was hard to me to find add Library button.
I acted in wrong way.
It is below.
and here is a correct way.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With