28302

Estimote SDK for Ecilipse

Question:

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 <a href="https://github.com/Estimote/Android-SDK" rel="nofollow">https://github.com/Estimote/Android-SDK</a>.

I just want to create demo app for Estimote Notification.

<strong>Logcat Error :</strong>

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

<strong>This is the line its indicate :</strong>

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

<strong>Note :</strong>

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 <a href="https://stackoverflow.com/a/21417599/3292795" rel="nofollow">link</a>

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

Answer1:

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:

<ul><li>

UnZIP the AAR into some directory.

</li> <li>

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”.

</li> <li>

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

</li> <li>

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).

</li> <li>

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.

</li> <li>

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).

</li> </ul>

Reference Link: <a href="https://commonsware.com/blog/2014/07/03/consuming-aars-eclipse.html" rel="nofollow">https://commonsware.com/blog/2014/07/03/consuming-aars-eclipse.html</a>

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: <a href="https://github.com/TheLittleNaruto/Estimote" rel="nofollow">https://github.com/TheLittleNaruto/Estimote</a>

Recommend

  • Secure Asset/Media Folder through Auth Controller ? Laravel 5.2
  • Proper implementation of producer-consumer scenario and “graceful” termination of thread pool
  • How to add an Auth Token in every request using AFIncrementalStore?
  • C# Use/connect to MySQL database in webhost (One.com)
  • getsockname return invalid address
  • Esper window usage: Recalculation based on event leaving window
  • Batch file that keeps the 7 latest files in a subfolder
  • Get last 15 lines from a large file in SFTP with phpseclib [duplicate]
  • Map Annotation Disclosure Indicator - Xamarin.Form
  • Making Django.contrib.auth store plain-text password
  • “proxy_pass” cannot have URI part in location given by regular expression
  • Homomorphic filtering in OpenCV
  • Disabling swipe gesture in Windows Phone 8.1 pivot control
  • How to put an object in the air?
  • UIScrollView does not restore properly
  • Sample deviceQuery cuda program
  • Android studio import problems. (Apktool)
  • playing mp3 from nsbundle
  • Arraylist of strings into one comma separated string
  • C# code can't “see” the methods in my C++ dll
  • Building JavaFX 2.0 App on Mac, deploying on Windows
  • Query takes almost two seconds but matches only two rows - why isn't the index helping?
  • How to make Rss News Reader application in android …? [closed]
  • Create an average of multiple excel chart without the data source
  • How to include associated objects using gon in Rails/jQuery
  • how to run ejabberd with Erlang on Heroku?
  • How to use Streams api peek() function and make it work?
  • How do I add a mouse over tooltip to an Image using .DrawImage()
  • `$http:badreq Bad Request Configuration` - from angular post method, what is wrong here?
  • Google App Engine Datastore: Dealing with eventual consistency
  • How to handle div that is created dynamically in a table
  • Google App Engine backend servlet not responding
  • ssh remote server login script
  • Make checkout phone field optional for specific countries in WooCommerce
  • Excel VBA : conditional formatting of sheet1 cells from sheet2 values in excel 2007
  • How to call different template for different category archive page in woocommerce