无法在Eclipse中配置了Android灯塔库 [英] fail to configure the Android Beacon Library in Eclipse

查看:264
本文介绍了无法在Eclipse中配置了Android灯塔库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我跟着快速启动来配置Android -beacon库在Eclipse中,但我无法运行我的应用程序。我不知道如何解决这个问题。

I followed the full instruction in Quick Start to configure the android-beacon-library in Eclipse, but I fail to run my app. I have no idea how to fix the problem.

我的步骤如下,

步骤1.导入库到Eclipse

Step 1. Import the library into Eclipse

步骤2.添加库到我的项目

Step 2. Add the library to my project

步骤3.添加SDK和权限申报到AndroidManifest.xml

Step 3. Add sdk and permission declarations to your AndroidManifest.xml

步骤4.编辑您的project.properties文件并添加行:manifestmerger.enabled = TRUE

Step 4. Edit your project.properties file and add the line: manifestmerger.enabled=true

步骤5粘贴href=\"http://altbeacon.github.io/android-beacon-library/samples.html\" rel=\"nofollow\">在监控范例code 的

Step 5. Paste the Monitoring Example Code in my MainActivity. And set the beacon layout conforming to the iBeacon protocol.

然后,问题发生。正如下面显示,我的项目似乎一无所知android的信标库的存在。

Then, problem occured. As it shows below, my project seemed to know nothing about the existence of the android-beacon-library.

然后,我用了项目设置修复,并添加了Android的信标库构建路径。

Then, I used the Project Setup Fixes, and added the android-beacon-library to build path. .

在此之后,有一个在项目中没有任何错误,那么我使用的Nexus 5,但是运行我的项目,新的问题发生。下面是控制台打印出的东西。

After that, there's no error in the project, then I run my project using Nexus 5. However, new problem occured. Here's what the console prints out.

和,我转到转到项目 - >属性 - > Android的 - >图书馆一遍,发现这是我成功地在第2步中添加了android信标库转作如下

And, I go to Go to Project -> Properties -> Android -> Library again, to find that the android-beacon library which I succeeded to add in Step 2 turned to be as follows.

我丢失了一些步骤?

推荐答案

红十字会的意思是断开的引用来解决这个问题,你应该在Eclipse工作区中复制Android的灯塔库,然后导入库蚀。

Red cross mean broken reference to solve that problem you should copy android beacon library in eclipse workspace and then import that library in eclipse.

在你的情况,你必须从E盘移动机器人灯塔库到Eclipse工作区,然后在Eclipse中导入。

In your case you have to move android beacon library from E drive to Eclipse workspace and then import it in Eclipse.

之后,你可以成功地使用绿色打勾符号该库在项目中。

After that you can successfully use that library with green tick symbol in your project.

这篇关于无法在Eclipse中配置了Android灯塔库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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