zoukankan      html  css  js  c++  java
  • android各种笔记

    本人开发的开发者技术变现资源聚集地,大家支持下,下面是网址

    https://www.baiydu.com

    一.生成key

    http://blog.csdn.net/anyanyan07/article/details/53493785

    二.mac os项目变大

    删除 项目中app->build文件夹的intermediates文件夹

    三.项目生成jar 和aar

    http://www.jianshu.com/p/1777a634db5e

    四.android 友盟推送与阿里电商sdk同时继承冲突

    ERROR: Dex writing phase: classes.dex has too many IDs. Try using multi-dex)

    这个原因是同时集成的友盟消息推送与阿里电商联盟的sdk jar中有相同的类,解决方法。

    将PushSDK生成.arr文件后倒入项目,分别继承问题解决.  

    路径:

    cd /Users/hangliao/Desktop/umeng_message201710181609_3.1.3a.upush/PushExample/Pushlib/build/outputs/aar/Pushlib-release.aar

    五.xls在线转换csv

    https://cloudconvert.com/xls-to-csv


    contentLayout=(LinearLayout)convertView.findViewById(R.id.paomadeng_linelayout);

    lunbo_textview = new TextView(getActivity());
    lunbo_textview.setText("12121212");
    lunbo_textview.setTextSize(13);
    lunbo_textview.setSingleLine(true);
    //设置字体颜色

    Resources resource = getActivity().getBaseContext().getResources();
    ColorStateList csl = resource.getColorStateList(R.color.white_color);

    lunbo_textview.setTextColor(csl);
    LinearLayout.LayoutParams lunbo_textviewLayoutParameter = new LinearLayout.LayoutParams(LinearLayout.LayoutParams .MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);
    lunbo_textviewLayoutParameter.topMargin=45;
    lunbo_textviewLayoutParameter.leftMargin=13;
    lunbo_textviewLayoutParameter.rightMargin=1;
    lunbo_textview.setLayoutParams(lunbo_textviewLayoutParameter);

    contentLayout.addView(lunbo_textview);



    1.app真机调试报错

    adb install -r 中出现INSTALL_FAILED_UNKNOWN_SOURCES,怎样解决?

    D:android_code708 ools>adb install -r D:work_feixunGallery2.apk
    3030 KB/s (7663016 bytes in 2.469s)
    pkg: /data/local/tmp/Gallery2.apk
    Failure [INSTALL_FAILED_UNKNOWN_SOURCES] 

    解决:设置->安全->未知来源(允许安装来自未知来源的应用)。

  • 相关阅读:
    Python进阶-----类、对象的相关知识
    Python进阶-----面向对象和类的基本定义
    Python基础-----hashlib模块
    Python基础-----configparser模块
    Python基础-----logging模块
    Python基础-----re模块(模糊匹配)
    Python基础-----xml模块
    Python基础-----shelve模块
    Python基础-----pickle模块
    Python基础-----json模块
  • 原文地址:https://www.cnblogs.com/xiaoliao/p/7767891.html
Copyright © 2011-2022 走看看