Android Support Library Manual Download

后端 未结 5 1483
梦如初夏
梦如初夏 2020-12-05 07:06

Can any one tell me how to install Android Support library manually? Because I have problem with my SDK Manager unable to find required library and also packages need to dev

5条回答
  •  遥遥无期
    2020-12-05 07:32

    I have been trying to figure this out ALL DAY LONG. Finally came across the right stuff online and so I'll share with you here.

    Via command line:

    android list sdk -a --extended
    

    You will receive a list of all the valid packages to be downloaded and installed. You might need to adjust your buffer size to see them all. Snippet below

    ----------
    id: 84 or "source-14"
         Type: Source
         Desc: Sources for Android SDK, API 14, revision 1
    ----------
    id: 85 or "extra-android-m2repository"
         Type: Extra
         Desc: Android Support Repository, revision 5
               By Android
               Local Maven repository for Support Libraries
               Install path: extras\android\m2repository
    ----------
    id: 86 or "extra-android-support" <-- YOU ELUSIVE SOB
         Type: Extra
         Desc: Android Support Library, revision 19.1
               By Android
               Install path: extras\android\support
    ----------
    id: 87 or "extra-google-admob_ads_sdk"
         Type: Extra
         Desc: Google AdMob Ads SDK, revision 11 (Obsolete)
               By Google Inc.
               AdMob Ads SDK
               Install path: extras\google\admob_ads_sdk
    ----------
    id: 88 or "extra-google-analytics_sdk_v2"
         Type: Extra
         Desc: Google Analytics App Tracking SDK, revision 3
               By Google Inc.
               Analytics App Tracking SDK
               Install path: extras\google\analytics_sdk_v2
    ----------
    id: 89 or "extra-google-gcm"
         Type: Extra
         Desc: Google Cloud Messaging for Android Library, revision 3 (Obsolete)
               By Google Inc.
               GCM library has been moved to Google Play Services
    

    Now:

    android update sdk --no-ui -a --filter "extra-android-m2repository"
    

    Hope this helps someone. I wasted a LOT of time tracking this guy down.

提交回复
热议问题