Add support library to Android Studio project

后端 未结 6 2073
天涯浪人
天涯浪人 2020-11-30 19:24

I just installed the new Android Studio and I\'m looking for a way to import the support library for Android.

Where is the option for that? In Eclipse that are just

6条回答
  •  我在风中等你
    2020-11-30 20:02

    This is way more simpler with Maven dependency feature:

    1. Open File -> Project Structure... menu.
    2. Select Modules in the left pane, choose your project's main module in the middle pane and open Dependencies tab in the right pane.
    3. Click the plus sign in the right panel and select "Maven dependency" from the list. A Maven dependency dialog will pop up.
    4. Enter "support-v4" into the search field and click the icon with magnifying glass.
    5. Select "com.google.android:support-v4:r7@jar" from the drop-down list.
    6. Click "OK".
    7. Clean and rebuild your project.

    Hope this will help!

提交回复
热议问题