Eclipse Android project lost link to library project - ViewPagerIndicator

Eclipse Version: Helios Service Release 2 Build ID: 20110301-1815

I imported the ViewPagerIndicator library into Eclipse File-> New-> Android Project ... Named project ViewPageIndicatorLibrary

Create a project from an existing source

Choose source

C:\Android\development\workspace\Android-ViewPagerIndicator\library 

Added compatibility library and build Project correctly. Properties of the project "Library" checked. All perfectly.

In the project I want to use ViewPageIndicator, select properties. Android Properties -> Add Library and ViewPageIndicatorLibrary library project are available for selection.

Select ViewPageIndicatorLibrary and it will appear with a green tick with the reference path "C:\Android\development\workspace\ViewPageIndicatorLibrary" everything looks fine.

Close the properties, open the properties again, and the link to the library will appear along with the red cross.

The link path looks correct (points to the same root of the ViewPageIndicatorLibrary project that has just been added)

 "C:\Android\development\workspace\ViewPageIndicatorLibrary" 

The project name is displayed as "?".

Eclipse seems to be losing touch with the ViewPageIndicatorLibrary project. Import links to com.viewpagerindicator. * Failed to resolve.

project.properties of the main project shows

 # Project target. target=android-8 android.library.reference.1=C:/Android/development/workspace/ViewPageIndicatorLibrary 

So the reference path is absolute and correct. Any ideas? I just want to use this library, but it does not play. Deleting / re-creating a library project several times now - the same results, Eclipse loses touch when the Properties dialog is closed.

+4
source share
1 answer

I had the same issue with google-play-services_lib. This problem arose after I created the second eclipse workspace and copied some projects, including this library.

In this situation, I had google-play-services_lib in every workspace folder. Then I deleted one folder, fixed the project settings (Android Tools) and cleared this project. This solved the problem.

Perhaps this is an Eclipse bug (Juno 4.2.1).

+1
source

Source: https://habr.com/ru/post/1389034/


All Articles