-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
87 changed files
with
2,103 additions
and
2,204 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,36 +18,36 @@ | |
|
||
|
||
|
||
<link rel="stylesheet" href="../gitbook/style.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/style.css"> | ||
|
||
|
||
|
||
|
||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-search-pro/search.css"> | ||
|
||
|
||
|
||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-ace/ace.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-ace/ace.css"> | ||
|
||
|
||
|
||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-splitter/splitter.css"> | ||
|
||
|
||
|
||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-toggle-chapters/toggle.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-toggle-chapters/toggle.css"> | ||
|
||
|
||
|
||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-prism/prism.css"> | ||
|
||
|
||
|
||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-donate/plugin.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-donate/plugin.css"> | ||
|
||
|
||
|
||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-fontsettings/website.css"> | ||
|
||
|
||
|
||
|
@@ -75,8 +75,8 @@ | |
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="black"> | ||
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png"> | ||
<link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon"> | ||
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/images/apple-touch-icon-precomposed-152.png"> | ||
<link rel="shortcut icon" href="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/images/favicon.ico" type="image/x-icon"> | ||
|
||
|
||
<link rel="next" href="dart.html" /> | ||
|
@@ -1407,12 +1407,12 @@ <h1 id="常见配置问题">常见औ | |
<h2 id="android-studio问题">Android Studio问题</h2> | ||
<h4 id="缺少依赖库问题">缺少依赖库问题</h4> | ||
<p>上手安卓最常遇见的问题之一,错误如下图所示,此时点击超链接即可自动跳转到安装页面</p> | ||
<p><img src="../imgs/install_platforms_err.png" alt="install_platforms_err.png"></p> | ||
<p><img src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/docs/imgs/install_platforms_err.png" alt="install_platforms_err.png"></p> | ||
<p>安装之后重新运行即可。</p> | ||
<p><img src="../imgs/install_request_components.png" alt="install_request_components.png"></p> | ||
<p><img src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/docs/imgs/install_request_components.png" alt="install_request_components.png"></p> | ||
<h4 id="连接不上android-repository">连接不上Android Repository</h4> | ||
<p>这也是最常见的问题之一,当你发现自己无法下载部分依赖的时候,请优先考虑这种情况。进入 <code>File</code> -> <code>Settings</code> -> <code>Appearance & Behavior</code> -> <code>System Settings</code> -> <code>Android SDK</code> -> <code>SDK Update Sites</code> 列表,可以看到此时的 <code>Android Repository</code> 无法连接。</p> | ||
<p><img src="../imgs/dl_google_err.png" alt="dl_google_err.png"></p> | ||
<p><img src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/docs/imgs/dl_google_err.png" alt="dl_google_err.png"></p> | ||
<p>解决方法如下:</p> | ||
<ol> | ||
<li>进入 <code>C:\windows\system32\drivers\etc\</code> </li> | ||
|
@@ -1437,7 +1437,7 @@ <h4 id="安卓包配置问题">安Ե | |
jcenter() | ||
} | ||
} | ||
</code></pre><p><img src="../imgs/fix_maven.png" alt=""></p> | ||
</code></pre><p><img src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/docs/imgs/fix_maven.png" alt=""></p> | ||
</li> | ||
<li><p>进入 <code>File/ Settings/ Build, Execution, Deployment/ Gradle/ Android Studio</code> 中,勾选上 <code>Enable embedded Maven repository</code> ,重启 Android Studio 即可解决。</p> | ||
<blockquote> | ||
|
@@ -1488,58 +1488,58 @@ <h1 class="search-results-title">No results matching "<span class='search-query' | |
<script> | ||
var gitbook = gitbook || []; | ||
gitbook.push(function() { | ||
gitbook.page.hasChanged({"page":{"title":"常见配置问题","level":"1.2.4","depth":2,"next":{"title":"Dart语言简介","level":"1.2.5","depth":2,"path":"chapter1/dart.md","ref":"chapter1/dart.md","articles":[]},"previous":{"title":"搭建Flutter开发环境","level":"1.2.3","depth":2,"path":"chapter1/install_flutter.md","ref":"chapter1/install_flutter.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-search","search-pro","ace","splitter","toggle-chapters","prism","donate","-highlight"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"prism":{},"ace":{},"splitter":{},"search-pro":{"cutWordLib":"nodejieba","defineWord":["Gitbook Use"]},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"donate":{"alipay":"","alipayText":"支付宝打赏","button":"赏","title":"","wechat":"https://cdn.jsdelivr.net/gh/flutterchina/[email protected]/images/pay.jpg","wechatText":"微信打赏"},"fontsettings":{"theme":"white","family":"sans","size":2},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"toggle-chapters":{}},"theme":"default","author":"wendux [email protected]","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"《Flutter实战》","language":"zh-hans","links":{"sharing":{"all":null,"facebook":null,"google":null,"twitter":null,"weibo":null},"sidebar":{"<div><img height=20 style='position:relative; top:5px; padding-right:5px ' src='https://cdn.jsdelivr.net/gh/flutterchina/[email protected]/images/favicon.png'/> Flutter中文网</div>":"https://flutterchina.club"}},"gitbook":"*","description":"记录Gitbook的配置和一些插件的使用"},"file":{"path":"chapter1/configuration.md","mtime":"2019-01-02T10:06:06.480Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-01-24T07:59:09.445Z"},"basePath":"..","book":{"language":""}}); | ||
gitbook.page.hasChanged({"page":{"title":"常见配置问题","level":"1.2.4","depth":2,"next":{"title":"Dart语言简介","level":"1.2.5","depth":2,"path":"chapter1/dart.md","ref":"chapter1/dart.md","articles":[]},"previous":{"title":"搭建Flutter开发环境","level":"1.2.3","depth":2,"path":"chapter1/install_flutter.md","ref":"chapter1/install_flutter.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-search","search-pro","ace","splitter","toggle-chapters","prism","donate","-highlight"],"root":"docs","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"prism":{},"ace":{},"splitter":{},"search-pro":{"cutWordLib":"nodejieba","defineWord":["Gitbook Use"]},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"donate":{"alipay":"","alipayText":"支付宝打赏","button":"赏","title":"","wechat":"https://cdn.jsdelivr.net/gh/flutterchina/[email protected]/images/pay.jpg","wechatText":"微信打赏"},"fontsettings":{"theme":"white","family":"sans","size":2},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"toggle-chapters":{}},"theme":"default","author":"wendux [email protected]","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"《Flutter实战》","language":"zh-hans","links":{"sharing":{"all":null,"facebook":null,"google":null,"twitter":null,"weibo":null},"sidebar":{"<div><img height=20 style='position:relative; top:5px; padding-right:5px ' src='https://cdn.jsdelivr.net/gh/flutterchina/[email protected]/images/favicon.png'/> Flutter中文网</div>":"https://flutterchina.club"}},"gitbook":"*","description":"记录Gitbook的配置和一些插件的使用"},"file":{"path":"chapter1/configuration.md","mtime":"2019-01-02T10:06:06.480Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-01-24T08:13:19.274Z"},"basePath":"..","book":{"language":""}}); | ||
}); | ||
</script> | ||
</div> | ||
|
||
|
||
|
||
<script src="../gitbook/gitbook.js"></script> | ||
<script src="../gitbook/theme.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/theme.js"></script> | ||
|
||
|
||
<script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script> | ||
|
||
|
||
|
||
<script src="../gitbook/gitbook-plugin-search-pro/search.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-search-pro/search.js"></script> | ||
|
||
|
||
|
||
<script src="../gitbook/gitbook-plugin-ace/ace/ace.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-ace/ace/ace.js"></script> | ||
|
||
|
||
|
||
<script src="../gitbook/gitbook-plugin-ace/ace.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-ace/ace.js"></script> | ||
|
||
|
||
|
||
<script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-splitter/splitter.js"></script> | ||
|
||
|
||
|
||
<script src="../gitbook/gitbook-plugin-toggle-chapters/toggle.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-toggle-chapters/toggle.js"></script> | ||
|
||
|
||
|
||
<script src="../gitbook/gitbook-plugin-donate/plugin.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-donate/plugin.js"></script> | ||
|
||
|
||
|
||
<script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-lunr/lunr.min.js"></script> | ||
|
||
|
||
|
||
<script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-lunr/search-lunr.js"></script> | ||
|
||
|
||
|
||
<script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-sharing/buttons.js"></script> | ||
|
||
|
||
|
||
<script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/flutterchina/flutter-in-action/_book/gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script> | ||
|
||
|
||
|
||
|
Oops, something went wrong.