Estimote SDK的Ecilipse [英] Estimote SDK for Ecilipse

查看:620
本文介绍了Estimote SDK的Ecilipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很初学者为此Estimote灯塔我只是试图转换Estimote演示的Andr​​oid Studio项目到Eclipse IDE中。但我发现了pretty接近,但我在图书馆的文件有些麻烦。我下面在GitHub上Estimote的Andr​​oid SDK指南: https://github.com/Estimote/Android-SDK

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.

我只是想创建Estimote通知演示应用程序。

I just want to create demo app for Estimote Notification.

logcat的错误:

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

这是它的标志行:

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

注意:

在我第一次得到库文件错误导入AAR文件,但错误不固定的,所以我只是把它重命名为.jar和提取,然后我得到classes.jar文件,这个帮助的link

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的图书馆项目是.aar格式。正如你不能直接导入和使用Eclipse的。你需要通过提取其所有内容,使库项目。

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:


  • 解压缩到AAR某些目录。

  • UnZIP the AAR into some directory.

创建一个空目录,这将是家庭为Android库项目。对于这些步骤的其余部分,我会将此称为输出目录。

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

复制AndroidManifest.xml中,RES /和资产/从AAR目录到输出目录。

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

创建输出目录库/目录。复制到库/从解压的AAR的根classes.jar,加上库什么/在AAR(例如,mediarouter-V7拥有自己的专利位JAR)。

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

决定要尝试使用什么版本的SDK。你可能只是选择您所安装的最高SDK版本。或者,你可以使用android:的m​​inSdkVersion和-vNN资源集预选赛获得线索,以什么好身材SDK可能。如果需要,创建一个project.properties与目标= Android的NNN线,其中NNN是你选择的构建SDK文件。或者,你可以在Eclipse以后解决这个问题。

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.

导入生成的项目到Eclipse中,并根据需要调整构建SDK(项目>属性> Android版)。此外,您将需要连接到该库项目的库项目这取决于(例如,mediarouter-V7取决于应用程序兼容性-V7)。

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

参考链接: https://commonsware.com/blog /2014/07/03/consuming-aars-eclipse.html

因此​​,一旦你已经完成了上述步骤,你将有你的库项目。现在,您可以将其导入到Eclipse工作区。并可以与您的项目中使用它。

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.

我已经Estimote的.aar库的库项目从同上面提到的步骤。
https://github.com/TheLittleNaruto/Estimote

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

这篇关于Estimote SDK的Ecilipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆