Estimote sdk java,Estimote SDK的Ecilipse

I am very beginner for this Estimote Beacons i just tried to Convert Estimote Demo Android Studio Project into Eclipse IDE. but I'm getting pretty close, but I'm having some trouble on Library file. I am following the Estimote Android SDK Guide on GitHub at https://github.com/Estimote/Android-SDK.

I just want to create demo app for Estimote Notification.

Logcat Error :

java.lang.NoClassDefFoundError: com.estimote.sdk.EstimoteSDK

This is the line its indicate :

EstimoteSDK.initialize(this, "YOUR APP ID", "YOUR APP TOKEN");

Note :

in very first time i get error in Library File in importing aar file but error not fixed so i just rename it as .jar and then extracted i get classes.jar file with the help of this link

Help me where i am wrong. any help can can be acceptable

解决方案

Estimote's library project is in .aar format. As you can't directly import and use it on Eclipse. You need to make a library project by extracting its all contents.

For doing so, you'll have to do following steps:

UnZIP the AAR into some directory.

Create an empty directory that will be the home for the Android library project. For the rest of these steps, I will refer to this as “the output directory”.

Copy the AndroidManifest.xml, res/, and assets/ directories from the AAR into the output directory.

Create a libs/ directory in the output directory. Copy into libs/ the classes.jar from the root of the unZIPped AAR, plus anything in libs/ in the AAR (e.g., mediarouter-v7 has its own JAR of proprietary bits).

Decide what build SDK you want to try to use. You might just choose the highest SDK version you have installed. Or, you can use the android:minSdkVersion and the -vNN resource set qualifiers to get clues as to what a good build SDK might be. If desired, create a project.properties file with a target=android-NNN line, where NNN is your chosen build SDK. Or, you can address this in Eclipse later on.

Import the resulting project into Eclipse, and if needed adjust the build SDK (Project > Properties > Android). Also, you will need to attach to this library project any library projects it depends upon (e.g., mediarouter-v7 depends upon appcompat-v7).

So as soon as you have done the above steps, you'll have your library project. Now you can import it to your Eclipse workspace. and can use it with your project.

I have made a library project of Estimote's .aar library from same above mentioned steps.

You can get it from my repository: https://github.com/TheLittleNaruto/Estimote

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值