2017-07-28 20 views
0

我剛開始用信標和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,你就全都設置好了。

回答

0

安裝

此行添加到您的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

+0

我得到一個 「無法解析:com.estimote:SDK:1.0.11」,但編譯「com.estimote:SDK:1.0.3 @aar'工作得很好。 是的,我初始化了它。 –

相關問題