To use Android-ViewPagerIndicator in Android Studio, you can’t download it from gradle. Instead, you must import the library as an “Existing Project” to your current one.

Follow these steps:

1 Download source code from GitHub.
2 In your Android Studio Project: File -> Project Structure -> add (+ symbol) -> Import Existing Project. Import just the folder called ”library”, not the entire project (leave the import options as Android Studio suggests).
3 If the “compileSdkVersion” specified in your build.gradle doesn’t match with the one specified in the Android-ViewPagerIndicator project, change the second one. The same apply with any other property, such as “minSdkVersion” or even the current support library.直接将App's build.gradle里面的android{}内容复制到新导入的模块的build.gradle中

4 Add Android-ViewPagerIndicator project as a dependency to your build.gradle module:

更多相关文章

  1. android 界面 自动化测试
  2. Android与服务器http连接模块代码
  3. webview导入H5小游戏
  4. ios&&android复制剪贴板
  5. 长按复制TextView
  6. Android(安卓)Studio之导入外部so库
  7. 导入第三方项目因gradle引起的不能运行问题
  8. ARFoundation系列讲解-11安装GoodlePlayServicesforAR二
  9. Android(安卓)Studio导入android-support-v4,v7,v13等支持包

随机推荐

  1. Android 通知(Notification)的基本用法
  2. 使用Kotlin开发Android项目-Kibo(二)
  3. 背景图像颜色检测与Android油漆。
  4. IDEA简介和快捷键设置
  5. Android控件之Dialog(two)列表与自定义弹
  6. 在Activity中添加Fragment
  7. [置顶] Android屏幕适配解决方案
  8. 安卓自定义 View 进阶:Path 完结篇(伪)
  9. 如何在android中创建自定义导航抽屉
  10. Android常见管理器—短信管理器 SmsManag