设置机器人施放SDK [英] Setting up android cast sdk

查看:119
本文介绍了设置机器人施放SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不太似乎可以让剧组SDK建立在Eclipse。我应该导入项目,然后将其添加到我的应用程序项目。我试过了,但我仍然无法访问类,如CastContext。任何提示吗?我很高兴能得到这方面的工作的事!

I can't quite seem to get the cast SDK set up in eclipse. I'm supposed to import the project, then add it to my application project. I tried that, but I still can't access classes like CastContext. Any tips? I'm excited to get working on this thing!

推荐答案

  • 使用SDK管理器下载了Android支持包。它应该包括mediarouter和appcompat。
  • 也应该下载实际投API: https://开头的开发。 google.com/cast/downloads/GoogleCastSdkAndroid-1.0.0.zip ...你可以阅读下载页面(至少这就是发生在我身上),当错过这个链接。
  • 然后将它们全部导入Eclipse(文件 - >导入),该支持包应该是在SDK /演员/安卓/支持/ V7 / mediarouter和SDK /演员/安卓/支持/ V7 / appcompat。演员包,无论你救了它(我只是把它在SDK /目录)。
  • 的mediarouter依赖于appcompat,所以你希望将其添加到mediarouter项目作为一个库。
  • 头部到您的应用程序项目,并添加新创建的mediarouter,appcompat和GoogleCastSdkAndroid包。

  • Download the Android Support package with the SDK Manager. It should include mediarouter and appcompat.
  • Should also download the actual cast api: https://developers.google.com/cast/downloads/GoogleCastSdkAndroid-1.0.0.zip ... You can miss this link when reading the downloads page (at least that's what happened to me).
  • Then import them all into Eclipse (File->Import), the support packages should be under sdk/extras/android/support/v7/mediarouter and sdk/extras/android/support/v7/appcompat. The cast package is wherever you saved it (I just put it in the sdk/ directory).
  • The mediarouter depends on the appcompat, so you want to add it to the mediarouter project as a library.
  • Head over to your application project and add the newly created mediarouter, appcompat and GoogleCastSdkAndroid packages.
  • 这应该照顾它都为你。

    这篇关于设置机器人施放SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆