1. https://github.com/yixia/VitamioBundle 下载 VitamioBundle 工程,解压之后将里面的 vitamio 作为 module 导入自己的工程,并添加为依赖

  2. 添加依赖时,需要将 vitamio module 下的 build.gradle 文件的配置修改为我们自己项目 module 下的 build.gradle 中的一致,并且将首行改为
    apply plugin: 'com.android.library'
    导入 Vitamio

  3. 修改完之后 rebuild 一下,因为使用了另一个 module 当 Library,可能还会遇到
    Android studio Gradle icon error, Manifest Merger的错误,
    此时按照 error suggestion, 我们把形如android:replace="android:icon"之类的代码添加到自己 module 下的 Manifest 文件下的 Application 标签内,意思是使用此 module 下的 Manifest 中的 Application 配置

    这样就可在自己的项目中使用 Vitamio 了。

参考 :http://stackoverflow.com/error-manifest-merger
http://www.cnblogs.com/happyhacking/p/5365192.html

相关文章:

  • 2022-01-29
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
  • 2021-06-22
猜你喜欢
  • 2021-06-23
  • 2021-06-23
  • 2021-12-06
  • 2021-05-05
  • 2021-12-16
  • 2022-03-05
相关资源
相似解决方案