如何获得充分Estimote SDK,而不是CoreSDK
问题描述:
我刚开始用信标和Android应用实验,我安装Estimote SDK加入compile 'com.estimote:sdk:[email protected]'
我的build.gradle文件的相关性,但我只得到com.estimote.coresdk.*
和com.estimote.mgmtsdk.*
,而不是com.estimote.sdk.*
,我想这是完全成熟的SDK。如何获得充分Estimote SDK,而不是CoreSDK
我在哪里错了?我如何获得完整的SDK? (我有一个Estimote Cloud帐户,现在只有一个Estimote分配)
编辑:实际上CoreSDK是Estimote SDK中的新软件包(不是旧的,因为我认为)。所以,如果你获得CoreSDK,你就全都设置好了。
答
安装
此行添加到您的build.gradle文件:
dependencies {
compile 'com.estimote:sdk:1.0.11'
}
初始化Estimote SDK
初始化Estimote SDK在您的应用程序类onCreate()
方法:
// To get your AppId and AppToken you need to create new application in Estimote Cloud.
EstimoteSDK.initialize(applicationContext, appId, appToken);
// Optional, debug logging.
EstimoteSDK.enableDebugLogging(true);
为more信息查询README.md
我得到一个 “无法解析:com.estimote:SDK:1.0.11”,但编译“com.estimote:SDK:1.0.3 @aar'工作得很好。 是的,我初始化了它。 –