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

前端 未结 4 363
别那么骄傲
别那么骄傲 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:11

    I fixed this by going into File > Project Structure... and selecting Modules then click on the module's Dependencies tab. Then next to the library I changed the scope from Compile to Provided.

    This means the module can still use it, but it doesn't reach compile, since I assume you are already using that JAR in your main project.

    Hope this helps!

提交回复
热议问题