Android的支持库V17 [英] Android Support Library v17
问题描述
我刚刚下载的Eclipse 4.4红月并安装最新的ADT 20就可以了。现在,包括新的Android项目的新模板。其中之一是Android的电视活动。
I just downloaded Eclipse 4.4 Luna and installed the latest ADT 20 on it. Now, new templates for new Android Project are included. One of them is "Android TV Activity".
现有code采用了Android支持库V17 !!
The existing code uses Android Support Library v17!!
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.support.v17.leanback.widget.ImageCardView;
import android.support.v17.leanback.widget.Presenter;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
但我不能找到新的支持库V17的任何地方!我搜索d.android.com,仍然无法找到它。我在哪里可以找到它?
But I cannot find the new support library v17 anywhere! I've searched d.android.com, and still cannot find it. Where can I find it?
推荐答案
在Leanback的图书馆是在支持库中找到。如果你使用的摇篮,你可以用得到它:
The Leanback library is available in the Support Repository. If you're using Gradle you can get it using:
compile "com.android.support:leanback-v17:+"
您可以通过SDK管理器安装支持库包,你能看到摇篮拉从依赖于< SDK根> /演员/安卓/ m2repository / COM /安卓/支持/轻松看-V17 / 21.0.0-RC1
。但是,我还没有使用Eclipse进行Android开发的年龄,所以我不知道如果它甚至支持AAR库。
You can install the Support Repository package via the SDK manager, and you can see where Gradle pulls the dependency from at <sdk root>/extras/android/m2repository/com/android/support/leanback-v17/21.0.0-rc1
. However, I haven't used Eclipse for Android development for ages so I'm unaware if it even supports AAR libraries.
这篇关于Android的支持库V17的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!