Android gradle build and the support library

后端 未结 5 893
梦毁少年i
梦毁少年i 2020-12-14 06:27

I have a project that uses a few other library projects (SlidingMenu, ActionbarSherlock) and both of these use the android support library, when building I am getting the fo

5条回答
  •  生来不讨喜
    2020-12-14 07:02

    This is now possible by downloading Android Support Repository from the SDK Manager, and replacing

    compile files("libs/android-support-v4.jar")
    

    with

    compile 'com.android.support:support-v4:13.0.0'
    

    This has to be done for all projects that use the support library. The Android Support Repository is automatically added to your list of repositories by the build system (Unsure of which part adds it, don't know enough gradle yet).

    Source

提交回复
热议问题