原文地址 https://blog.csdn.net/u010375364/article/details/52344120 原文链接:https://github.com/mzlogin/awesome-adb ADB 常用用法大全,收集了在开发、测试和普通用户使用
ADB,即 Android Debug Bridge,它是 Android 开发/测试人员不可替代的强大工具,也是 Android 设备玩家的好玩具。
持续更新中,欢迎提 PR 和 Issue 补充指正,觉得有用的可以将 此 GitHub 仓库 Star 收藏备用。
注: 有部分命令的支持情况可能与 Android 系统版本及……继续阅读 »
在AS的plugins工具时竟然给我提示“marketplace plugins are not loaded”!
经上网了解发现IDEA的模块系统加载不出来,是由于IDEA的网络安全机制造成的,类似于windows的防火墙,IDEA误认为你的网络不安全,不给你连接,本质为公司的网络被IDEA认为不安全,具体IDEA为什么会这么认为,原因暂时我还不知道。
解决方法时这样的:点击File->settings->Appearance&Behavior->System Settings -> Updates
将Use secure connection选项的√去掉!……继续阅读 »
// 显示Mac隐藏文件
defaults write com.apple.finder AppleShowAllFiles YES
// 隐藏Mac隐藏文件
defaults write com.apple.finder AppleShowAllFiles NO
// 强制使用集显
sudo pmset -a GPUSwitch 0
// 强制使用独显
sudo pmset -a GPUSwitch 1
// 自动切换模式
sudo pmset -a GPUSwitch 2
// 修改Mac地址
sudo ifconfig en0 ether [mac地址]
……继续阅读 »
最近重装了一次mac,并且重做了一下开发环境,结果以前的sourceTree项目的GIT密码始终保存不到Mac的钥匙串中,明明在钥匙串中是存在的.但是在使用sourceTree pull/push代码的时候还是需要再输入密码,很是繁琐.
于是,网上搜索了一下,说的在https模式下,Mac需要使用osxkeychain凭据助手,并在Git中设置使用. 并且如果已经安装了brew的应该会自带了osxkeychain.但是奇怪的是,我安装了brew的,使用brew安装应用也没有问题.那就只能手动的再设置一次了.
使用方法
先使用命令下载 git-credential-osxkeychain
cur……继续阅读 »
apply plugin: 'com.android.application'
//创建当前时间字符创 比如 0411_1213 表示 4月11号,12点13分
def buildTime() {
def date = new Date()
def formattedDate = date.format('MMdd_HHmm')
return formattedDate
}
//获取文件夹最后一次git commit的sha值
def gitSha = 'git rev-parse --short HEAD'……继续阅读 »
……继续阅读 »
……继续阅读 »
国内Specs
清华大学镜像
https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git
上海大学镜像
https://mirrors.shu.edu.cn/CocoaPods (仅HTTP/HTTPS访问,不支持git拉取)
https://mirrors.shu.edu.cn/mgit/Specs (仅git访问)
https://git.shuosc.org/CocoaPods/Specs (均支持)
中国区镜像表项
git://cocoapodscn.com/Specs.git
使用方法
对于旧版的 CocoaPods 可以……继续阅读 »
以Mac为例
切换到.android目录
cd ~/.android
使用命令(需要输入密码)
debug的默认口令为:android
如果使用自己提供的keystore,就是自己的密码了
keytool -list -v -keystore debug.keystore
……继续阅读 »
本文由 简悦 SimpRead 转码, 原文地址 https://www.jianshu.com/p/067b1399158d
1、在 buildsrc 中新建 AsmInjectPlugin 插件
public class AsmInjectPlugin implements Plugin<Project>{
@Override
void apply(Project project) {
System.out.println("========================")
System.out.pri……继续阅读 »