/
14749714762373.html
237 lines (168 loc) · 7.03 KB
/
14749714762373.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>
Mac ADB 环境变量配置 - IMLC.ME
</title>
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="atom.xml" rel="alternate" title="IMLC.ME" type="application/atom+xml">
<link href="asset/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<link href="asset/stylesheets/font-awesome.min.css" media="screen, projection" rel="stylesheet" type="text/css">
<script src="asset/javascripts/jquery.min.js"></script>
<script src="asset/highlightjs/highlight.pack.js"></script>
<link href="asset/highlightjs/styles/solarized_dark.css" media="screen, projection" rel="stylesheet" type="text/css">
<script>hljs.initHighlightingOnLoad();</script>
<!--[if lt IE 9]><script src="asset/javascripts/html5.js"></script><![endif]-->
<!-- <link href='http://fonts.googleapis.com/css?family=Nunito:400,300,700' rel='stylesheet' type='text/css'> -->
<style type="text/css">
/* latin */
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 300;
src: local('Nunito-Light'), url(asset/font/1TiHc9yag0wq3lDO9cw0voX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
/* latin */
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 400;
src: local('Nunito-Regular'), url(asset/font/6TbRXKWJjpj6V2v_WyRbMX-_kf6ByYO6CLYdB4HQE-Y.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
/* latin */
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 700;
src: local('Nunito-Bold'), url(asset/font/TttUCfJ272GBgSKaOaD7KoX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
</style>
<style type="text/css">
.container .left-col{ opacity: 1;}
#pagenavi a{ font-size: 1.3em;}
#pagenavi .next:before{ top: 3px;}
#pagenavi .prev:before{ top: 3px;}
#projects-nav {margin-left: 10px;}
#projects-nav li {
list-style: none;
}
.container .mid-col .mid-col-container #content .archives .title{ font-size: 1.5em;}
.container .mid-col .mid-col-container #content article{ padding: 15px 0px;}
#header .subtitle {
line-height: 1.2em;
padding-top: 8px;
}
article pre{ background: none; border: none; padding: 0;}
article .entry-content{text-align: left;}
.share-comment{ padding: 25px 0px; clear: both;}
hr{ margin: 20px 0px;border: 0; border-top:solid 1px #ddd;}
</style>
</head>
<body>
<div class="container">
<div class="left-col">
<div class="intrude-less">
<header id="header" class="inner">
<div class="profilepic">
<img src="/asset/icon.jpg" style="width:160px;">
</div>
<h1><a href="index.html">IMLC.ME</a></h1>
<p class="subtitle"></p>
<nav id="main-nav">
<ul class="main">
<li id=""><a target="self" href="index.html">Home</a></li>
<li id=""><a target="_self" href="archives.html">Archives</a></li>
</ul>
</nav>
<nav>
My Projects
<ul id="projects-nav">
</ul>
</nav>
<nav id="sub-nav">
<div class="social">
<a target="_blank" class="github" target="_blank" href="https://github.com/lawrenceching" title="GitHub">GitHub</a>
<a class="rss" href="atom.xml" title="RSS">RSS</a>
</div>
</nav>
</header>
</div>
</div>
<div class="mid-col">
<div class="mid-col-container">
<div id="content" class="inner">
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
<h1 class="title" itemprop="name">Mac ADB 环境变量配置</h1>
<div class="entry-content" itemprop="articleBody">
<h3 id="toc_0">1. 记录 adb 所在目录位置</h3>
<p>
记住自己adb 程序的目录位置,如在我的电脑中是:/Users/android-sdk-macosx/platform-tools/</p>
<h3 id="toc_1">2. 创建 .bash_profile 文件</h3>
<p>
terminal 中输入</p>
<pre><code>touch .bash_profile
</code></pre>
<h3 id="toc_2">3. 打开 .bash_profile 文件</h3>
<pre><code>open -e .bash_profile
</code></pre>
<p>该命令会自动打开文本编辑器。</p>
<p>(1) 如果你发现里面已经有内容了,请在 PATH 后面添加 </p>
<p><code>:/Users/android-sdk-macosx/platform-tools/</code> </p>
<p>包括最前面的英文状态下的冒号。如果 PATH 后面的路径被双引号括了起来,那么请把上面这句添加到双引号的里面。</p>
<p>(2) 如果你打开的文件是空白的,请输入<br/><br/>
<code>export PATH=${PATH}:/Users/android-sdk-macosx/platform-tools/</code> </p>
<p>保存后关闭。</p>
<h3 id="toc_3">4. 添加环境变量</h3>
<pre><code>source .bash_profile
</code></pre>
<h3 id="toc_4">5. 在终端输入 adb,在设置正常的情况下会弹出一大堆的adb 使用提示。</h3>
</div>
</article>
<div class="share-comment">
<!-- 多说评论框 start -->
<div class="ds-thread"></div>
<!-- 多说评论框 end -->
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
<script type="text/javascript">
var duoshuoQuery = {short_name:"lawrenceching"};
(function() {
var ds = document.createElement('script');
ds.type = 'text/javascript';ds.async = true;
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
ds.charset = 'UTF-8';
(document.getElementsByTagName('head')[0]
|| document.getElementsByTagName('body')[0]).appendChild(ds);
})();
</script>
<!-- 多说公共JS代码 end -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-57304811-3', 'auto');
ga('send', 'pageview');
</script>
</div>
</div> </div>
<footer id="footer" class="inner">Copyright © 2018
Powered by <a target="_blank" href="http://www.mweb.im">MWeb</a>
Theme by <a href="http://shashankmehta.in/archive/2012/greyshade.html">Shashank Mehta</a>
<a href="http://www.miitbeian.gov.cn" target="_blank">粤ICP备15018861号</a>
</footer>
</div>
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-57304811-3', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>