How to import ViewPagerIndicator library in Eclipse

我的梦境 提交于 2019-12-24 08:02:10

问题


I referred this Link.

As they mentioned, I download it as a zip file and tried to import the library project into Eclipse, but I can't. Instead I get a message "No files to import". How to overcome this?


回答1:


Normally the problem is that you have an existing project called "library" in your workspace, you need to rename it and try to "import from existing code" again.

Another option is

  1. In the project root directory, run mvn eclipse:clean
  2. Then run mvn eclipse:eclipse to build .classpath and .project files

Hope it works.




回答2:


I don't think you can use the ViewPagerIndicator as a library in your project. You have import the ViewPagerIndicator as a project, and then reference it in your project.




回答3:


You can choose between two possibilities:

  1. Copy the library source folder into your android project source folder.

  2. If you won't the library as an own library project, follow these steps:

Package Explorer > New > Project ... > Choose "Android > Android Project from Existing Code" > Select unzipped Lib Folder



来源:https://stackoverflow.com/questions/13858675/how-to-import-viewpagerindicator-library-in-eclipse

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