ButterKnife介绍 App项目开发大部分时候还是以UI页面为主,这时我们需要调用大量的findViewById以及setOnClickListener等代码,控件的少的时候我们还能接受,控件多起来有时候就会有一种想砸键盘的冲动。所以这个时候我们想着可以借助注解的方式让我们从这种繁重的工作中脱
错误信息 Android使用okhttp等客户端请求https时,证书如果是用来测试(不可信任)的会报出如下问题: okhttp默认情况下是支持https协议的,不过要注意的是,支持https的网站如果是CA机构颁发的证书,默认情况下是可以信任的,否则不可信任。 javax.net.ssl.SSL
沪江插件gradle_plugin_android_aspectjx: https://github.com/HujiangTechnology/gradle_plugin_android_aspectjx 以点击防重为例 project module buildscript { repo
参考:https://www.jianshu.com/p/7b354eb8d0d3 传统处理方式 (1)每个按钮点击事件中,记录点击时间,判断是否超过点击时间间隔 private long mLastClickTime = 0; public static final long TIME_INTE
JsBridge: https://github.com/lzyzsd/JsBridge 自带的BridgeWebView并未添加yy://之外的协议,需要自行实现,如通用协议如电话、短信、邮件以及自定义协议如打开微信等。 <a href="tel:10086">电话
setPushIntentServiceClass无效 采用mPushAgent.setPushIntentServiceClass(PushService.class)接收处理消息的方式,在友盟channel进程可以成功接收到消息,Logcat有消息日志打印,但在主进程接收不到消息 经测试,And
AndroidManifest.xml <application> <!--友盟--> <meta-data android:value="Umeng App Key" android:name="UMENG_APPKEY"
AgentWeb:https://github.com/Justson/AgentWeb JsBridge:https://github.com/lzyzsd/JsBridge JS需添加 function connectWebViewJavascriptBridge(callback) {
Github:https://github.com/lzyzsd/JsBridge 依赖 repositories { maven { url "https://jitpack.io" } } dependencies { api 'com.gith
参考:https://developer.android.google.cn/studio/command-line/sdkmanager # bin/sdkmanager --proxy=http --proxy_host=192.168.16.28 --proxy_port=8118 --lis
构建 Freestyle project -> 构建 -> Execute shell cd app chmod +x ../gradlew ../gradlew clean assembleDefaultDebug assembleDefaultRelease assembleDev
SDK初始化 务必在工程的自定义Application类的onCreate()方法中做SDK代码初始化工作 //友盟推送初始化 //UMConfigure.init(this, "Appkey", "Umeng", UMConfigure.DEVICE_TY
依赖引入 common module dependencies api 'com.alibaba:arouter-api:1.5.0' biz module dependencies android { defaultConfig { javaC
NoClassDefFoundError: Failed resolution of: Landroidx/databinding/DataBinderMapperImpl app module 和 相关的 子 module 均需配置 android { dataBinding {
子module中使用 在Library module中使用参考:https://github.com/JakeWharton/butterknife#library-projects Now make sure you use R2 instead of R inside all Butter Kn