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".
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;
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?
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:+"
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.
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