如何在我的项目Android Eclipse中为Android库添加微光



我是Android新手。请帮助我如何在我的项目Android Eclipse中为Android库添加微光。

1) Download library from here - https://github.com/RomainPiel/Shimmer-android/releases
2) In eclipse
    - Right click package explorer -> New -> Other -> Android project from existing code
    - Browse to location of shimmer library download
    - Under project to import, choose project 'library' .( Only library is required. No need sample)
    - Rename it to something like 'shimmer' under new project name section for library otherwise it will be name 'main'
    - Mark copy project to workspace to maintain separate copy of library
    - Finish
    Now in package explorer
    - Goto 'java' folder of shimmer
    - Right click -> Build path -> use as source folder
    - Right click -> properties -> Android -> Mark 'is library'
    - Clean
3) Now add library to any project
    - Right click target project -> properties 
    - Goto Android 
    - Click Add under library panel
    - choose shimmer -> Apply
4) Clean project

现在你可以在android studio中添加这个gradle了。

dependencies {
               compile 'com.facebook.shimmer:shimmer:0.1.0@aar'
             }

相关内容

  • 没有找到相关文章

最新更新