简体   繁体   中英

Android Support Library v17 for Eclipse

I just started working on Android-L . I have created HelloWorld project in Eclipse. but i got red markers at every android.support.v17 imports.

import android.support.v17.leanback.widget.ImageCardView;
import android.support.v17.leanback.widget.Presenter;
import android.support.v17.leanback.widget.AbstractDetailsDescriptionPresenter;
import android.support.v17.leanback.app.BackgroundManager;
import android.support.v17.leanback.app.BrowseFragment;
import android.support.v17.leanback.widget.ArrayObjectAdapter;
import android.support.v17.leanback.widget.HeaderItem;
import android.support.v17.leanback.widget.ListRow;
import android.support.v17.leanback.widget.ListRowPresenter;
import android.support.v17.leanback.widget.OnItemClickedListener;
import android.support.v17.leanback.widget.OnItemSelectedListener;
import android.support.v17.leanback.widget.Presenter;
import android.support.v17.leanback.widget.Row;

I have already update my Support Library but i cant see any Support V17 in my SDK .

So someone please point me how can i download it? I am using Eclipse Kepler.

At the present time, leanback-v17 is only available from Google as an AAR.

If you happen to be using Maven for your build system, the android-maven-plugin supports AARs .

Or, you can try to convert the AAR into an Android library project . I have not personally tried this approach with leanback-v17 just yet, so I do not know if there are any specific problems that that AAR will cause.

Or, you can switch to Gradle for Android, with or without Android Studio, and consume the AAR "natively".

I've built the Android TV leanback library as an set of APKLibs and JARs. You can find those here.

https://github.com/kingargyle/adt-leanback-support

You'll need to run a mvn clean install, to build the libraries, and the jars. You can then import the projects into your eclipse workspace and depend on them as you normally do.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM