Use support library in android projects and library (Android Studio)

前端 未结 4 374
别那么骄傲
别那么骄傲 2021-01-04 02:50

I\'m using the new Android Studio, I\'m looking for a way to use the support library from multiple projects. Basically I have a project that uses the ActionBarSherlock

4条回答
  •  滥情空心
    2021-01-04 03:06

    I had a similar issue happen to me. Select actionbarsherlock in the project tab/bar/whatever (on the left, so you can see the project tree). hit F4 to open the module settings.
    Make sure that you are not using the same dependencies twice in actionbarsherlock and your project.
    Also make sure that you're using the version of the support library that's in the android-studio sdk (android-studio/sdk/extras/android).

    Finally, if you're like me, make sure you didn't accidentally make actionbarsherlock dependent on itself, thus loading the library twice THAT way! >.<

    Take a look at these images showing my module preferences: http://imgur.com/a/JupWp Actionbar Sherlock enter image description here

    Also, don't forget to make sure libs isn't hiding any of the same ones!

提交回复
热议问题