Estimote SDK for Ecilipse [英] Estimote SDK for Ecilipse
问题描述
我只想为Estimote通知创建演示应用程序。
Logcat错误:
java.lang.NoClassDefFoundError:com.estimote.sdk.EstimoteSDK
这是它表示的行:
<$ EstimoteSDK.initialize(这是你的应用程序ID,你的APP TOKEN); p $ p>
注意:
在第一次我得到错误在库文件导入aar文件,但错误不是固定的,所以我只是将其重命名为.jar,然后提取我得到classes.jar文件借助这个链接
帮助我我错了什么任何帮助都可以接受
Estimote的图书馆项目采用.aar格式。因为您无法直接导入并在Eclipse上使用它。您需要通过提取其所有内容来制作图书馆项目。
为此,您必须执行以下步骤:
-
将AAR解压缩到某个目录中。
-
创建一个空的目录,为Android图书馆项目。对于其余的步骤,我将其称为输出目录。
-
复制AndroidManifest.xml,res /和assets /目录从AAR到输出目录。
-
在输出目录中创建一个libs /目录。从unZIPped AAR的根中复制到libs / classes.jar,加上AAR中的libs /中的任何东西(例如,mediarouter-v7都有自己的JAR的专有位)。
-
确定要尝试使用的build SDK。您可能只选择安装的最高SDK版本。或者,您可以使用android:minSdkVersion和-vNN资源集限定符来获取关于什么是好的构建SDK可能的线索。如果需要,使用target = android-NNN行创建一个project.properties文件,其中NNN是您选择的构建SDK。或者,您可以稍后在Eclipse中解决此问题。
-
将生成的项目导入到Eclipse中,如果需要,可以调整build SDK(Project> Properties> Android) 。此外,您需要将此依赖的图书馆项目附加到此图书馆项目(例如,mediarouter-v7取决于appcompat-v7)。
参考链接: https://commonsware.com/blog/2014/07/03/consuming-aars-eclipse.html
所以,一旦你完成了上述步骤,你将有你的图书馆项目。现在可以将其导入到Eclipse工作区。并可以使用它与您的项目。
我已经从同样的上述步骤做了Estimote的.aar库的图书馆项目。
您可以从我的存储库获取: https://github.com/TheLittleNaruto/Estimote
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).
Reference Link: https://commonsware.com/blog/2014/07/03/consuming-aars-eclipse.html
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
这篇关于Estimote SDK for Ecilipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!