如何获得完整的Estimote SDK而不是CoreSDK

时间:2017-07-28 12:12:43

标签: android android-studio sdk estimote

我刚开始尝试使用Beacons和Android应用程序,我通过将compile 'com.estimote:sdk:1.0.3@aar'添加到build.gradle文件的依赖项中来安装Estimote SDK,但我只获得了com.estimote.coresdk.* 以及com.estimote.mgmtsdk.*,而不是com.estimote.sdk.*,我认为这是完全成熟的SDK。

我哪里错了?我如何获得完整的SDK? (我有一个Estimote Cloud帐户 - 现在 - 指定了一个Estimote)

编辑:实际上CoreSDK是Estimote SDK中的新包(不像我想的那样旧)。所以,好的,如果你得到了CoreSDK,你就可以了。

1 个答案:

答案 0 :(得分:0)

<强>安装

将此行添加到build.gradle文件中:

dependencies {
  compile 'com.estimote:sdk:1.0.11'
}

初始化Estimote SDK

在Application类onCreate()方法中初始化Estimote SDK:

//  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