fail to configure the Android Beacon Library in Eclipse

被刻印的时光 ゝ 提交于 2020-01-06 18:02:27

问题


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.

My steps are as follows,

Step 1. Import the library into Eclipse

Step 2. Add the library to my project

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

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

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

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

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

.

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.

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.

Am I missing some step?


回答1:


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.

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.




回答2:


You need to fix the library reference under Project -> Properties -> Android -> Library where you see the red X. Remove that reference, then click Add, and browse for were the android-beacon-library is located. If you don't see android-beacon-library as an option, then make sure it exists as a proper Android Library Project in your workspace.



来源:https://stackoverflow.com/questions/26630735/fail-to-configure-the-android-beacon-library-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!