在AS的plugins工具时竟然给我提示“marketplace plugins are not loaded”!
经上网了解发现IDEA的模块系统加载不出来,是由于IDEA的网络安全机制造成的,类似于windows的防火墙,IDEA误认为你的网络不安全,不给你连接,本质为公司的网络被IDEA认为不安全,具体IDEA为什么会这么认为,原因暂时我还不知道。
解决方法时这样的:点击File->……继续阅读 »
1年前 (2019-07-26) 2260浏览 0评论
11个赞
// 显示Mac隐藏文件
defaults write com.apple.finder AppleShowAllFiles YES
// 隐藏Mac隐藏文件
defaults write com.apple.finder AppleShowAllFiles NO
// 强制使用集显
sudo pmset -a GPUSwitch 0
// 强制使用独显
sudo pmset -a GPUSwit……继续阅读 »
2年前 (2019-07-17) 744浏览 0评论
0个赞
最近重装了一次mac,并且重做了一下开发环境,结果以前的sourceTree项目的GIT密码始终保存不到Mac的钥匙串中,明明在钥匙串中是存在的.但是在使用sourceTree pull/push代码的时候还是需要再输入密码,很是繁琐.
于是,网上搜索了一下,说的在https模式下,Mac需要使用osxkeychain凭据助手,并在Git中设置使用. 并且如果已经安装了brew的应该会自带了osx……继续阅读 »
2年前 (2019-06-28) 944浏览 0评论
0个赞
apply plugin: 'com.android.application'
//创建当前时间字符创 比如 0411_1213 表示 4月11号,12点13分
def buildTime() {
def date = new Date()
def formattedDate = date.format('MMdd_HHmm')
r……继续阅读 »
2年前 (2019-06-27) 698浏览 0评论
0个赞
……继续阅读 »
2年前 (2019-05-29) 1072浏览 0评论
0个赞
……继续阅读 »
2年前 (2019-05-29) 817浏览 0评论
0个赞
国内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://……继续阅读 »
2年前 (2019-05-01) 3142浏览 0评论
0个赞
以Mac为例
切换到.android目录
cd ~/.android
使用命令(需要输入密码)
debug的默认口令为:android
如果使用自己提供的keystore,就是自己的密码了
keytool -list -v -keystore debug.keystore
……继续阅读 »
2年前 (2019-01-30) 1591浏览 0评论
0个赞
本文由 简悦 SimpRead 转码, 原文地址 https://www.jianshu.com/p/067b1399158d
1、在 buildsrc 中新建 AsmInjectPlugin 插件
public class AsmInjectPlugin implements Plugin<Project>{
@Override
void apply(Projec……继续阅读 »
2年前 (2019-01-30) 2490浏览 0评论
2个赞
本文由 简悦 SimpRead 转码, 原文地址 https://www.jianshu.com/p/d1d7fd48ff0b
前言
我们平常在进行 Android 开发时,都会使用 Gradle 来进行项目配置,通常在对应的 module:app 的build.gradle中,在最上面的一句话一般都为:
apply plugin: 'com.android.application'
这句话……继续阅读 »
2年前 (2019-01-30) 1438浏览 0评论
0个赞