Error Importing Holoeverywhere

Error importing HoloEverywhere

Follow the steps below(taken from blog here) to add ActionBarSherlock

  1. Download the .zip/.tgz and extract it
  2. Go to eclipse and choose File->New-> Android Project
  3. Select Create project from existing source and then browse to the library folder inside extracted AndroidBarSherlock folder
  4. Build Target should be the latest(14 or15), but your minSdkVersion can be less (7 or 8)
  5. Press Finish
  6. Right click on the newly created project and go to Properties.
  7. Under the Android heading, you should see a section for Library with a checkbox IsLibrary. Make sure that's checked.
  8. Right click -> Properies on the project in which you wish to add AndroidBarSherlock under the Android heading and the Library section choose Add.
  9. You should see the ActionBarSherlock library, add this to your project
  10. Lastly, if you were using the compatibility support , you need to delete that jar since it's included in ActionBarSherlock.

Follow the steps below to add HoloEverywhere

  1. Download Zip from GitHub to your computer
  2. UnZip the folder
  3. Go to eclipse and choose File->New-> Android Project
  4. Select Create project from existing source and then browse to the HoloEverywhereLib folder inside extracted folder
  5. Press Finish
  6. Right click on the newly created project and go to Properties.
  7. Under the Android heading, you should see a section for Library with a checkbox IsLibrary. Make sure that's checked and press Add and previously added library ActionBarSherlock.

Follow these steps to add HoloEverywhere to your project

  1. Create a new Android project
  2. Right Click on project -> Properties -> Android -> Add, add both ActionBarSherlock and HoloEverywhere
  3. Change the Android Manifest to following

    <application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/Holo.Theme">

  4. Edit you main.xml to include Holo theme widgets.

  5. Change your activity as follows

    public class ChkActionBarSherlock extends SherlockActivity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    }

    }

Importing HoloEverywhere into Eclipse: Error: No resource found that matches the given name

I finally found out what was causing the problem:

Android library projects have to be added via the Android tab in the Project settings, not via the Java Build path.
So, for adding the ActionbarSherlock dependency you have to open the settings of the HoloEverywhere project, choose the "Android" tab, click add and choose the ActionBarSherlock project.

I hope this helps future readers.

Prototik HoloEverywhere import error: duplicate entry 'src'

Ok As mentioned in the comment: Import the HoloEverywhere using File> Import> Git > Projects from Git

Importing HoloEverywhere into Eclipse: Error: No resource found that matches the given name

I finally found out what was causing the problem:

Android library projects have to be added via the Android tab in the Project settings, not via the Java Build path.
So, for adding the ActionbarSherlock dependency you have to open the settings of the HoloEverywhere project, choose the "Android" tab, click add and choose the ActionBarSherlock project.

I hope this helps future readers.



Related Topics



Leave a reply



Submit