小知识点记录

73 阅读1分钟
  • git log如何退出?

    按字母Q

  • 如何打印堆栈

Exception e = new Exception("this is a log");
e.printStackTrace();
  • tag拉分支
git branch <new-branch-name> <tag-name> 
 
例如:git branch newbranch web-11.2

或者 git checkout <tag-name>
  • exclude使用
 Error:Failed to resolve: com.android.support:design:25.1.0

那么如何不用框架中的design 包,而用自己项目中的design 包呢?

运用exclude group 关键字就可以

 compile ('com.***.***:XXX:1.0.0') { // 所加的第三方框架
        exclude group: 'com.android.support', module:'design'     // 加载时排除框架中的design包
 }