Android 插件化框架replugin使用教程之本地加载replugin-host-gradle

https://github.com/Qihoo360/RePlugin

1、replugin host gradle插件生成 replugin-host-gradle-2.3.3.jar

replugin-host-gradle 项目中终端运行 gradlew jar

replugin-host-gradle\build\libs 目录下生成replugin-host-gradle-2.3.3.jar

2、接入replugin主程序 gradle 依赖本地插件

1)远程依赖 buildscript 中dependencies

classpath 'com.qihoo360.replugin:replugin-host-gradle:2.3.3'

2)本地依赖 buildscript中dependencies apk-parser-2.2.0.jar 和 replugin-host-gradle-2.3.3.jar放入配置的路径下

        classpath files('lib/replugin-host-gradle-2.3.3.jar')
        classpath files('lib/apk-parser-2.2.0.jar')

或者

        classpath fileTree(include: ['*.jar'], dir: 'lib')

缺少依赖 apk-parser-2.2.0.jar 会提示以下错误
Caused by: java.lang.NoClassDefFoundError: net/dongliu/apk/parser/ApkFile

你可能感兴趣的:(Android)