2019-03

作者: 寒冬_腊月 | 来源:发表于2019-03-02 17:05 被阅读0次

NDK r17 移除了 MIPS, and MIPS64 CPU架构

https://developer.android.com/ndk/guides/arch?hl=zh-cn

shrinkResources使用

shrinkResources true//移除无用的resource文件, 不能应用库当中

删除tag

git tag -d tag名

StateListDrawable 使用

设置state_enabled=false 的办法

 StateListDrawable states = new StateListDrawable();
 states.addState(new int[] {-android.R.attr.state_enabled},R.drawable.btn_disabled);

解决maven 上传库一直有androidJavadocsJar 找不到库报错

artifacts {
//    archives androidSourcesJar //不要上传源代码
    archives androidJavadocsJar
}

switch case使用的问题

当我们在Android依赖库中使用switch-case语句访问资源ID时会报如下图所示的错误,报的错误是case分支后面跟的参数必须是常数,换句话说出现这个问题的原因是Android library中生成的R.java中的资源ID不是常数:

Resource IDs cannot be used in a switch statement in Android library

解决: 使用 if else 代替

UA

UserAgent 又称为「用户代理」,简称 UA 。 UA 的存在,能够让服务器能够识别客户端的信息

本地库不会产生依懒

the problem was that when the aar is generated locally it doesn't pack all the dependencies inside. That is by design!
You need to publish the aar to a maven repo and a pom file with all the dependencies listed, then gradle can get all the dependencies required.

相关文章

  • 2019-03《如果我们错了呢》.pdf 免费下载

    下载地址:2019-03《如果我们错了呢》[www.rejoiceblog.com].pdf

  • 2019-03

    关于人为什么都要生一个自己的孩子这件事,我认真思考了很久,哪怕这件事也许不值得思考,哪怕别人听起来觉得是我想多了。...

  • 2019-03

    3.3 : 瞎看了一下springmvc,没啥收获。还是要深入啊,浅尝辄止啥也学不到。 3.4 : 刷新DNS解析...

  • 2019-03

    NDK r17 移除了 MIPS, and MIPS64 CPU架构 https://developer.andr...

  • 2019-03

    3.11 two-sum (easy)Q: Given exactly one solution, -> 1 th...

  • Slackware Current安装笔记

    安装时间:2019-03 安装环境:windows+VMware 系统设定:UEFI + GPT 系统镜像:sla...

  • 2019-03—10

    中心路许洁,日精进315天,相互鼓励,共同进步 今日任务1500,已完成 比学习:每一项视功能给顾客分析到位,解决...

  • 2019-03—01

    敬爱的老师,智慧的教授,亲爱的学兄们: 大家好!我是来自枣庄庆源汽修魏光付,今天是2019年3月1日,我日精进的第...

  • 2019-03上

    本周考试F6和SBR,考完就虚脱了,周五改好论文跟导师吃饭,下午在寝室收拾东西。 SBR给我敲响了警钟,要100%...

  • 2019-03下

    0318 26岁,不敢任性。不敢熬夜,第二天会人不人鬼不鬼。不敢心焦,会舌头长泡,脸上长痘。不敢吃辣,会鼻子上火,...

网友评论

      本文标题:2019-03

      本文链接:https://www.haomeiwen.com/subject/ugoeuqtx.html