Problems importing project into Android Studio regarding ActionBarSherlock

前端 未结 4 1561
迷失自我
迷失自我 2020-11-29 01:24

Is anyone else having problems importing a project with ActionBarSherlock? I have a total of 100 errors and 17 warnings. This worked perfectly in Eclipse

4条回答
  •  一生所求
    2020-11-29 02:23

    This works for me..

    first, followed an answer provided by wired00

    and I made some changes from here.

    I made a build.gradle file in ActionBarSherlock library project by Generate Gradle build files from Eclipse.

    edit build.gradle(for ActioBarSherlock library project) , Add a line in dependencies {} compile files('libs/android-support-v4.jar')

    edit build.gradle(for my project), delete compile files('libs/android-support-v4.jar') and add compile project(':abs') abs should be ActionBarSherlock library project name.

    edit settings.gradle, add ,':abs'

    delete android-support-v4.jar files except the one in the ActionBarSherlock library project

提交回复
热议问题