在AndroidStudio中构建系统应用

2018-01-28  本文已影响10人  chandarlee

http://www.31mins.com/android-studio-build-system-application/

http://www.wxtlife.com/2015/03/31/how-to-use-android-hide-methods-or-class/

添加自定义的系统类库

如果修改了系统源码,导出了类似android.jar的jar包,则可以通过以下方式进行引用,该引用方式会优先于andriod.jar:

gradle.projectsEvaluated {
    tasks.withType(JavaCompile) {
        def path = "custom_android.jar";
        options.compilerArgs.add('-Xbootclasspath/p:'+path);
    }
}
上一篇 下一篇

猜你喜欢

热点阅读