• 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] 

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

  • 相关阅读:
    C/C++通过WMI和系统API函数获取获取系统硬件配置信息
    C++ 获取mac地址
    解决Win7下UAC开启时无法响应WM_DROPFILES消息
    C++vector迭代器失效的问题
    解决Duilib创建的win32窗口拖到屏幕上边缘自动最大化
    VC++获取计算机Hardware Information (CPU ID, MainBoard Info, Hard Disk Serial, System Information)
    VC++实现在系统托盘来新消息闪烁,鼠标悬停显示窗口
    正则表达式的懒惰匹配?
    thinkphp-许愿墙-3
    thinkphp-许愿墙-2
  • 原文地址:https://www.cnblogs.com/xiaoliao/p/7767891.html
Copyright © 2020-2023  润新知