I can not connect actionbarsherlock to the project

I downloaded the .zip file actionbarsherlock http://actionbarsherlock.com/download.html . unpacked. created a new project in eclipse from the actionbarsherlock source library compiled for Android 3.2-Google API. In the properties of the android project, a flag is specified - a library. compile your project using the Android 3.2-Google API. open the properties of the android project, trying to add the actionbarsherlock library, apply, ok. but nothing happens. open the properties of your project, and a red cross is marked in the actionbarsherlock library. using JRE 1.6. Can anyone tell me what I'm doing wrong, or a good link to instructions? Sorry google translate

+4
source share
3 answers

The library project should be in the same section as your project. When you use them in one section, Eclipse adds the library using the relative path and works.

+7
source

It looks like the path to the ABS library might be wrong. The steps are as follows.

1.) Launch a new Android project - from an existing source

  • Use JakeWharton-ActionBarSherlock-436230d / library as the source.

2.) Right-click on the abs project - select properties - select Android

  • Make sure the β€œLibrary” box is checked at the bottom.

3.) Right-click on the project YOURS - select properties - select Android

  • Press button
  • The ABS library must be indicated in the field. Select it, and now you import it into your project.

Remember to include in your AndroidManifest.xml to set the style for each action that the ActionBar will be in, you must add the following line:

android:theme="@style/Theme.Sherlock" 

One more thing. As far as I know, the ActionBarSherlock project should remain in your package explorer. Make sure you do not delete it. This may cause a path error.

Hope this helps!

+4
source

Place the library on the C: \ drive or on the operating system drive. Do not copy the workspace - I believe that it will solve the problem that you see. It really helped me after hours of contention.

0
source

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


All Articles