
{"code":1,"message":"","data":{"id":179919,"article":{"id":44033,"publicAccount":{"id":273,"name":"谷歌开发者","weixin":"Google_Developers","intro":"Google中国官方账号.汇集Android;Chrome;Angular等移动和网络开发技术、GooglePlay和AdMob等开发者成长、优化和变现平台.","body":"谷歌信息技术(中国)有限公司","image":"http://ss.csdn.net/p?http://img01.sogoucdn.com/app/a/100520090/oIWsFt-hCa79jIz6uNoHeRhOmSQs","href":"http://mp.weixin.qq.com/profile?src=3×tamp=1488349021&ver=1&signature=mplfSjLkCJPzhHH33jRHTdSRFWFKUY1B9dVOQLb7iYt8XgQ8SLtDCEEkkAZ5VZX0qKDUIdxT6znpW4-mJ92iGw==","biz":"MzAwODY4OTk2Mg==","category":{"id":10,"keyName":"sd","displayName":"软件研发","createdAt":1487578543000,"updatedAt":1487578543000,"status":1},"createdAt":1487751332000,"updatedAt":1496221649000,"status":1,"recommend":0,"qrcode":"http://mp.weixin.qq.com/mp/qrcode?scene=10000001&size=120&__biz=MzAwODY4OTk2Mg==&mid=2652042659&idx=1&sn=fa12c1ffbcc3b94ee70fb8ee1b28f6b4","articleCount":0,"viewCount":0},"category":{"id":10,"keyName":"sd","displayName":"软件研发","createdAt":1487578543000,"updatedAt":1487578543000,"status":1},"biz":"MzAwODY4OTk2Mg==","mid":"2652044548","idx":1,"sn":"3f7fadfbac1acaeee1e7c3fee0942b77","author":"Google Play","content":"","contentUrl":"http://mp.weixin.qq.com/s?__biz=MzAwODY4OTk2Mg==&mid=2652044548&idx=1&sn=3f7fadfbac1acaeee1e7c3fee0942b77&chksm=808d5d41b7fad457dabe233e483901445227934a8343417e1929428bb9c7c027a192d7cf2d26&scene=27#wechat_redirect","cover":"http:\\/\\/mmbiz.qpic.cn\\/mmbiz_jpg\\/rFWVXwibLGtzXGiaotnmINYt9Hjp6RY70Zic0FQguoqex7CIeDCD0nicicLnTRV616jniakpMGLYeV0iaeS8mJlRfJYfA\\/0?wx_fmt=jpeg","digest":"玩过积木吧?大概就是那么好用。","isMulti":0,"sourceUrl":"","title":"全新 Android 构建组件到底有多好用?","description":null,"datetime":1503994710000,"status":1,"viewCount":214,"praiseCount":17,"commentCount":0,"createdAt":1504004140000,"updatedAt":1505096656000,"origin":"proxy","recommend":0},"url":"http://mp.weixin.qq.com/s?__biz=MzAwODY4OTk2Mg==&mid=2652044548&idx=1&sn=3f7fadfbac1acaeee1e7c3fee0942b77&chksm=808d5d41b7fad457dabe233e483901445227934a8343417e1929428bb9c7c027a192d7cf2d26&scene=27#wechat_redirect","title":"全新 Android 构建组件到底有多好用?","source":"<section style=\"background-color: rgb(255, 255, 255); box-sizing: border-box;\"> \n <section class=\"Powered-by-XIUMI V5\" style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"> \n <section class=\"\" style=\" box-sizing: border-box; \"> \n <section class=\"\" style=\"font-size: 15px; color: rgb(79, 79, 79); line-height: 1.75; box-sizing: border-box;\"> \n <p style=\"text-align: center;\"><img data-s=\"300,640\" data-type=\"png\" data-src=\"https://mmbiz.qpic.cn/mmbiz_png/rFWVXwibLGtzXGiaotnmINYt9Hjp6RY70ZUSpszyYuofkn3TTMQSyeMMTHBAuFqCUPo3hX6p1sHudyx7bicPaGI2Q/0?wx_fmt=png\" class=\"\" data-ratio=\"0.58375\" data-w=\"800\" src=\"http://ss.csdn.net/p?https://mmbiz.qpic.cn/mmbiz_png/rFWVXwibLGtzXGiaotnmINYt9Hjp6RY70ZUSpszyYuofkn3TTMQSyeMMTHBAuFqCUPo3hX6p1sHudyx7bicPaGI2Q/640?wx_fmt=png\"></p> \n <p style=\"box-sizing: border-box;\"><br></p> \n <p style=\"box-sizing: border-box;\">开发者们可能是世界上最 “贪图享乐” 的人群了 —— 事实上您找不到另外一群人会在避免枯燥重复的工作方面投入如此高的热情。为了让开发者们在开发全新的 Android 应用时更加省心,我们听取了大家的意见,并推出了全新的构建组件 ↓</p> \n <p style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p> \n <p style=\"box-sizing: border-box;\"><iframe class=\"video_iframe\" data-vidtype=\"2\" allowfullscreen frameborder=\"0\" data-ratio=\"1.7647058823529411\" data-w=\"480\" data-src=\"https://v.qq.com/iframe/preview.html?vid=z0541jbppzk&width=500&height=375&auto=0\"></iframe><br></p> \n <p style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p> \n <p style=\"box-sizing: border-box;\"><strong>* 注 1<span style=\"color: rgb(79, 79, 79); font-size: 15px; background-color: rgb(255, 255, 255);\">:</span> 文档库 <span style=\"color: rgb(79, 79, 79); font-size: 15px; background-color: rgb(255, 255, 255);\">↓</span></strong></p> \n <p style=\"box-sizing: border-box;\">https://developer.android.google.cn/topic/libraries/architecture/index.html</p> \n <p style=\"box-sizing: border-box;\"><br></p> \n <p style=\"box-sizing: border-box;\"><strong>* 注 2<span style=\"color: rgb(79, 79, 79); font-size: 15px; background-color: rgb(255, 255, 255);\">:</span> 代码实验室 <span style=\"color: rgb(79, 79, 79); font-size: 15px; background-color: rgb(255, 255, 255);\">↓</span></strong></p> \n <p style=\"box-sizing: border-box;\">https://codelabs.developers.google.com/codelabs/android-persistence/#0</p> \n <p style=\"box-sizing: border-box;\">https://codelabs.developers.google.com/codelabs/android-lifecycles/#0</p> \n <p style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p> \n <p style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p> \n </section> \n </section> \n </section> \n <section class=\"Powered-by-XIUMI V5\" style=\" box-sizing: border-box; \" powered-by=\"xiumi.us\"> \n <section class=\"\" style=\" margin-right: 0%; margin-bottom: 10px; margin-left: 0%; box-sizing: border-box; \"> \n <section class=\"\" style=\"display: inline-block; vertical-align: top; border-color: rgb(72, 133, 237); width: 100%; padding: 3px 5px; border-width: 1px 1px 1px 4px; border-style: solid; font-size: 20px; color: rgb(72, 133, 237); box-sizing: border-box;\"> \n <p style=\"box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">1. 添加 Google Maven 存储库</strong></p> \n </section> \n </section> \n </section> \n <section class=\"Powered-by-XIUMI V5\" style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"> \n <section class=\"\" style=\" margin-top: 20px; margin-right: 0%; margin-left: 0%; box-sizing: border-box; \"> \n <section class=\"\" style=\"font-size: 15px; color: rgb(79, 79, 79); line-height: 1.75; box-sizing: border-box;\"> \n <p style=\"box-sizing: border-box;\">Android Studio 项目默认不配置访问该存储库。</p> \n <p style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p> \n <p style=\"box-sizing: border-box;\">打开您的项目的 build.gradle 文件(不是您的应用或模块使用的文件),并添加下文中的高亮部分:</p> \n <p style=\"box-sizing: border-box;\"><br></p> \n <div class=\"prettyprint\" style=\" font-size: 13px; margin-top: 0px; margin-bottom: 1em; color: rgb(0, 102, 0); font-stretch: normal; line-height: 18px; ; ; ; ; ; ; ; ; ; \">\n <span class=\"pln\" style=\"color: rgb(0, 0, 0);\">allprojects </span>\n <span class=\"pun\" style=\"color: rgb(102, 102, 0);\">{</span>\n <span class=\"pln\" style=\"color: rgb(0, 0, 0);\"><br> repositories </span>\n <span class=\"pun\" style=\"color: rgb(102, 102, 0);\">{</span>\n <span class=\"pln\" style=\"color: rgb(0, 0, 0);\"><br> jcenter</span>\n <span class=\"pun\" style=\"color: rgb(102, 102, 0);\">()</span>\n <span class=\"pln\" style=\"color: rgb(0, 0, 0);\"><br> </span>\n <mark><span class=\"pln\">maven </span><span class=\"pun\" style=\"color: rgb(102, 102, 0);\">{</span><span class=\"pln\"> url </span><span class=\"str\" style=\"color: rgb(136, 0, 0);\">'https://maven.google.com'</span><span class=\"pln\"> </span><span class=\"pun\" style=\"color: rgb(102, 102, 0);\">}</span></mark>\n <span class=\"pln\" style=\"color: rgb(0, 0, 0);\"><br> </span>\n <span class=\"pun\" style=\"color: rgb(102, 102, 0);\">}</span>\n <span class=\"pln\" style=\"color: rgb(0, 0, 0);\"><br></span>\n <span class=\"pun\" style=\"color: rgb(102, 102, 0);\">}</span>\n </div> \n <p><span class=\"pun\" style=\"color: rgb(102, 102, 0);\"><br></span></p> \n <p style=\"box-sizing: border-box;\"><br></p> \n </section> \n </section> \n </section> \n <section class=\"Powered-by-XIUMI V5\" style=\" box-sizing: border-box; \" powered-by=\"xiumi.us\"> \n <section class=\"\" style=\" margin-right: 0%; margin-bottom: 10px; margin-left: 0%; box-sizing: border-box; \"> \n <section class=\"\" style=\"display: inline-block; vertical-align: top; border-color: rgb(219, 50, 54); width: 100%; padding: 3px 5px; border-width: 1px 1px 1px 4px; border-style: solid; font-size: 20px; color: rgb(219, 50, 54); box-sizing: border-box;\"> \n <p style=\"box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">2. 添加构件组件</strong></p> \n </section> \n </section> \n </section> \n <section class=\"Powered-by-XIUMI V5\" style=\"box-sizing: border-box;\" powered-by=\"xiumi.us\"> \n <section class=\"\" style=\" margin-top: 20px; margin-right: 0%; margin-left: 0%; box-sizing: border-box; \"> \n <section class=\"\" style=\"font-size: 15px; color: rgb(79, 79, 79); line-height: 1.75; box-sizing: border-box;\"> \n <p style=\"box-sizing: border-box;\">打开您的应用或模块使用的 build.gradle 文件,并添加您需要的内容:</p> \n <p style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p> \n <p style=\"box-sizing: border-box;\">想支持 Lifecycles、LiveData 和 ViewModel,请添加:</p> \n <ul class=\" list-paddingleft-2\" style=\"list-style-type: disc;\"> \n <li><p style=\"box-sizing: border-box; margin-top: 15px;\">compile \"android.arch.lifecycle:runtime:1.0.0-alpha5\"</p></li> \n <li><p style=\"box-sizing: border-box; margin-top: 10px;\">compile \"android.arch.lifecycle:extensions:1.0.0-alpha5\"</p></li> \n <li><p style=\"box-sizing: border-box; margin-top: 10px;\">annotationProcessor “android.arch.lifecycle:compiler:1.0.0-alpha5\"</p></li> \n </ul> \n <p style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p> \n <p style=\"box-sizing: border-box;\">想支持 Room,请添加:</p> \n <ul class=\" list-paddingleft-2\" style=\"list-style-type: disc;\"> \n <li><p style=\"box-sizing: border-box; margin-top: 15px;\">compile \"android.arch.persistence.room:runtime:1.0.0-alpha5\"</p></li> \n <li><p style=\"box-sizing: border-box; margin-top: 10px;\">annotationProcessor “android.arch.persistence.room:compiler:1.0.0-alpha5\"</p></li> \n </ul> \n <p style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p> \n <p style=\"box-sizing: border-box;\">想支持测试 Room 迁移,请添加:</p> \n <ul class=\" list-paddingleft-2\" style=\"list-style-type: disc;\"> \n <li><p style=\"box-sizing: border-box; margin-top: 15px;\">testCompile “android.arch.persistence.room:testing:1.0.0-alpha5\"</p></li> \n </ul> \n <p style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p> \n <p style=\"box-sizing: border-box;\">想支持 Room RxJava,请添加:</p> \n <ul class=\" list-paddingleft-2\" style=\"list-style-type: disc;\"> \n <li><p style=\"box-sizing: border-box; margin-top: 15px;\">compile “android.arch.persistence.room:rxjava2:1.0.0-alpha5\"</p></li> \n </ul> \n <p style=\"box-sizing: border-box;\"><br style=\"box-sizing: border-box;\"></p> \n <p style=\"box-sizing: border-box;\">再次感谢大家为这套组件贡献的诸多意见和建议,我们期待着大家的反馈!</p> \n <p style=\"box-sizing: border-box;\"><br></p> \n <p style=\"box-sizing: border-box;\"><br></p> \n <section powered-by=\"xiumi.us\" style=\"font-size: 15px; white-space: normal; color: rgb(79, 79, 79); max-width: 100%; background-color: rgb(255, 255, 255); box-sizing: border-box !important; word-wrap: break-word !important;\"> \n <section style=\"max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\"> \n <section style=\"max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\"> \n <p style=\"max-width: 100%; box-sizing: border-box; min-height: 1em; word-wrap: break-word !important;\"><strong style=\"max-width: 100%; letter-spacing: 0px; font-size: 16px; box-sizing: border-box !important; word-wrap: break-word !important;\"><strong style=\"max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;\">推荐阅读:</strong></strong></p> \n </section> \n </section> \n </section> \n <p style=\"margin-top: 10px; font-size: 15px; white-space: normal; color: rgb(79, 79, 79); max-width: 100%; box-sizing: border-box; min-height: 1em; background-color: rgb(255, 255, 255); word-wrap: break-word !important;\"><a href=\"http://mp.weixin.qq.com/s?__biz=MzAwODY4OTk2Mg==&mid=2652044521&idx=1&sn=c97369f62e0e91c03d64e9af7c0d16b6&chksm=808d5cacb7fad5bad652927b896afd5376b577c1427ee94b76e7bcd489d00dc566e2e8b9aef4&scene=21#wechat_redirect\" target=\"_blank\" style=\"font-size: 15px; white-space: normal;\">Android 8.0 Oreo 画中画模式</a><span style=\"color: rgb(79, 79, 79); font-size: 15px; background-color: rgb(255, 255, 255);\"></span></p> \n <p style=\"margin-top: 10px; font-size: 15px; white-space: normal; color: rgb(79, 79, 79); max-width: 100%; box-sizing: border-box; min-height: 1em; background-color: rgb(255, 255, 255); word-wrap: break-word !important;\"><a href=\"http://mp.weixin.qq.com/s?__biz=MzAwODY4OTk2Mg==&mid=2652044487&idx=1&sn=ce2de5e0f31ffe526667156f2ac26ce9&chksm=808d5c82b7fad594d5d5ab0e4e387fa53b6519e945755fcca740c8a01a50ea6b23328c80aa64&scene=21#wechat_redirect\" target=\"_blank\">Android 8.0 Oreo 现已推出!</a><br></p> \n <p style=\"margin-top: 10px; font-size: 15px; white-space: normal; color: rgb(79, 79, 79); max-width: 100%; box-sizing: border-box; min-height: 1em; background-color: rgb(255, 255, 255); word-wrap: break-word !important;\"><a href=\"http://mp.weixin.qq.com/s?__biz=MzAwODY4OTk2Mg==&mid=2652044487&idx=2&sn=1de1a01840c74b6e8b3bcbdb1fccc81c&chksm=808d5c82b7fad594dabddeec10378d417c4684634943ed106900be59f506ce51afa1f679ddb5&scene=21#wechat_redirect\" target=\"_blank\">Android O 行为变更官方指南</a><br></p> \n <p style=\"margin-top: 10px; font-size: 15px; white-space: normal; color: rgb(79, 79, 79); max-width: 100%; box-sizing: border-box; min-height: 1em; background-color: rgb(255, 255, 255); word-wrap: break-word !important;\"><a href=\"http://mp.weixin.qq.com/s?__biz=MzAwODY4OTk2Mg==&mid=2652043947&idx=1&sn=00c1c89f498300736aca54b0adae2fd0&chksm=808d5aeeb7fad3f8c23a0a725984172d859b73a2f4235be43a6a6eeaacd51caaebfe0b92a87f&scene=21#wechat_redirect\" target=\"_blank\" style=\"font-size: 15px; white-space: normal;\">Android O 迁移应用官方指南</a></p> \n <p style=\"margin-top: 10px; font-size: 15px; white-space: normal; color: rgb(79, 79, 79); background-color: rgb(255, 255, 255); box-sizing: border-box;\"><a href=\"http://mp.weixin.qq.com/s?__biz=MzAwODY4OTk2Mg==&mid=2652044238&idx=1&sn=d9803bb27ebb7b1974a276294c121f0a&chksm=808d5b8bb7fad29d04054d77178c2e7559ed2f74718a5a071071b346c8ae00c23f00cd8958a8&scene=21#wechat_redirect\" target=\"_blank\">什么?Android O 图标能自适应了?!</a></p> \n <p style=\"margin-top: 10px; font-size: 15px; white-space: normal; color: rgb(79, 79, 79); background-color: rgb(255, 255, 255); box-sizing: border-box;\"><br></p> \n <p style=\"font-size: 15px; white-space: normal; color: rgb(79, 79, 79); background-color: rgb(255, 255, 255); box-sizing: border-box;\"><br></p> \n <p style=\"font-size: 15px; white-space: normal; background-color: rgb(255, 255, 255);\"><img data-type=\"gif\" data-src=\"https://mmbiz.qpic.cn/mmbiz_gif/rFWVXwibLGtxLpAIfAibD4gZjsmzg6A14vB7YQ1pFeDBKqztRXnNMUKOI9ZawibDCZItFiabAokD2As5U77g5GiaWsg/0?wx_fmt=gif\" class=\"\" data-ratio=\"0.9803707742639041\" data-w=\"917\" src=\"http://ss.csdn.net/p?https://mmbiz.qpic.cn/mmbiz_gif/rFWVXwibLGtxLpAIfAibD4gZjsmzg6A14vB7YQ1pFeDBKqztRXnNMUKOI9ZawibDCZItFiabAokD2As5U77g5GiaWsg/640?wx_fmt=gif\"></p> \n </section> \n </section> \n </section> \n</section>","level":3,"createdAt":1504004141000,"updatedAt":1505096656000}}
公众号