user2681579 user2681579 - 3 months ago 88
Android Question

How to import com.android.support:design:23.0.1 in eclipse

I am learning the android tab with swipe functionality using material theme. I have a sample tutorials from here and it is build from Android studio.

I am currently using eclipse for my project.

I am following the tutorial and i can't import the

TabLayout
from
com.android.support:design


Below is the code,

import android.support.design.widget.TabLayout;


Showing the error,
The import android.support.design cannot be resolved


I downloaded
support:design:23.0.1
from here and imported to eclipse, even then the error appears.

Can any one tell me where to download and import the
com.android.support:design:23.0.1
in eclipse.

Thanks

Answer
  1. Install Android SDK 23.0.1
  2. Import design library from sdk\extras\android\support\design into eclipse workspace
  3. To mark the design project as Library, open properties -> Select Android ->Check Library
  4. Now import this design Library to your Project from project properties.

This worked for me in Tab material design.

Comments