参考https://github.com/lzyzsd/JsBridge
API文档在此处看http://www.hutool.cn/
有关使用的jar包 通过配置到dependencies 自动下载
compile 'cn.hutool:hutool-all:4.0.12'
本文只做复习只用
xml内声明 BridgeWebView
<com.github.lzyzsd.jsbridge.BridgeWebView android:id="@+id/webView" android:layout_width="match_parent" android:layout_height="match_parent" > </com.github.lzyzsd.jsbridge.BridgeWebView>
配置build.gradle
allprojects { repositories { //…… maven { url "https://jitpack.io" } }
repositories { //…… maven { url "https://jitpack.i