﻿{"id":1150,"date":"2018-03-27T22:23:20","date_gmt":"2018-03-27T14:23:20","guid":{"rendered":"http:\/\/zerobox.org\/notes\/?p=1150"},"modified":"2018-03-27T22:23:25","modified_gmt":"2018-03-27T14:23:25","slug":"android%e6%80%a7%e8%83%bd%e4%bc%98%e5%8c%96%ef%bc%9a%e8%bf%99%e6%98%af%e4%b8%80%e4%bb%bd%e5%85%a8%e9%9d%a2-%e8%af%a6%e7%bb%86%e7%9a%84%e6%80%a7%e8%83%bd%e4%bc%98%e5%8c%96%e6%8c%87%e5%8d%97%ef%bc%88","status":"publish","type":"post","link":"http:\/\/zerobox.org\/notes\/1150.html","title":{"rendered":"Android\u6027\u80fd\u4f18\u5316\uff1a\u8fd9\u662f\u4e00\u4efd\u5168\u9762 &#038; \u8be6\u7ec6\u7684\u6027\u80fd\u4f18\u5316\u6307\u5357\uff08\u542b\u5185\u5b58\u4f18\u5316\u3001\u5e03\u5c40\u4f18\u5316\u7b49\uff09"},"content":{"rendered":"<div class=\"bog_copyright\">\n<p class=\"copyright_p\">https:\/\/blog.csdn.net\/carson_ho\/article\/details\/79708444<\/p>\n<\/div>\n<div><\/div>\n<div>\n<p>&nbsp;<\/p>\n<\/div>\n<div><\/div>\n<div id=\"article_content\" class=\"article_content csdn-tracking-statistics\" data-pid=\"blog\" data-mod=\"popu_307\" data-dsm=\"post\">\n<div class=\"markdown_views\">\n<h1 id=\"\u524d\u8a00\"><a target=\"_blank\" name=\"t0\"><\/a>\u524d\u8a00<\/h1>\n<ul>\n<li>\u5728\u00a0<code>Android<\/code>\u5f00\u53d1\u4e2d\uff0c\u6027\u80fd\u4f18\u5316\u7b56\u7565\u5341\u5206\u91cd\u8981<\/li>\n<li>\u56e0\u4e3a\u5176\u51b3\u5b9a\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684\u5f00\u53d1\u8d28\u91cf\uff1a\u53ef\u7528\u6027\u3001\u6d41\u7545\u6027\u3001\u7a33\u5b9a\u6027\u7b49\uff0c<strong>\u662f\u63d0\u9ad8\u7528\u6237\u7559\u5b58\u7387\u7684\u5173\u952e<\/strong><\/li>\n<li>\u672c\u6587\u5168\u9762\u8bb2\u89e3\u6027\u80fd\u4f18\u5316\u4e2d\u7684\u6240\u6709\u77e5\u8bc6\uff0c\u732e\u4e0a\u4e00\u4efd\u00a0<code>Android<\/code>\u6027\u80fd\u4f18\u5316\u7684\u8be6\u7ec6\u653b\u7565\uff0c \u542b\uff1a<strong>\u4f18\u5316\u65b9\u5411\u3001\u539f\u56e0 &amp; \u5177\u4f53\u4f18\u5316\u65b9\u6848<\/strong>\uff0c\u5e0c\u671b\u4f60\u4eec\u4f1a\u559c\u6b22<\/li>\n<\/ul>\n<blockquote><p>\u6587\u7ae0\u8f83\u957f\uff0c\u5efa\u8bae\u9884\u7559\u8f83\u957f\u65f6\u95f4\u9605\u8bfb \/ \u6536\u85cf<\/p><\/blockquote>\n<hr \/>\n<h1 id=\"\u76ee\u5f55\"><a target=\"_blank\" name=\"t1\"><\/a>\u76ee\u5f55<\/h1>\n<p><img decoding=\"async\" title=\"\" src=\"\" alt=\"\u793a\u610f\u56fe\" \/><\/p>\n<hr \/>\n<h1 id=\"1-\u6027\u80fd\u4f18\u5316\u7684\u76ee\u7684\"><a target=\"_blank\" name=\"t2\"><\/a>1. \u6027\u80fd\u4f18\u5316\u7684\u76ee\u7684<\/h1>\n<p>\u6027\u80fd\u4f18\u5316\u7684\u76ee\u7684\u662f\u4e3a\u4e86\u8ba9\u5e94\u7528\u7a0b\u5e8f<code>App<\/code>\u00a0<strong>\u66f4\u5feb\u3001\u66f4\u7a33\u5b9a &amp; \u66f4\u7701<\/strong>\u3002\u5177\u4f53\u4ecb\u7ecd\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>\u66f4\u5feb\uff1a\u5e94\u7528\u7a0b\u5e8f \u8fd0\u884c\u5f97\u66f4\u52a0\u6d41\u7545\u3001\u4e0d\u5361\u987f\uff0c\u80fd\u5feb\u901f\u54cd\u5e94\u7528\u6237\u64cd\u4f5c<\/li>\n<li>\u66f4\u7a33\u5b9a\uff1a\u5e94\u7528\u7a0b\u5e8f \u80fd \u7a33\u5b9a\u8fd0\u884c &amp; \u89e3\u51b3\u7528\u6237\u9700\u6c42\uff0c\u5728\u7528\u6237\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u4e0d\u51fa\u73b0\u5e94\u7528\u7a0b\u5e8f\u5d29\u6e83<code>\uff08Crash\uff09<\/code>\u00a0\u548c \u65e0\u54cd\u5e94<code>\uff08ANR\uff09<\/code>\u7684\u95ee\u9898<\/li>\n<li>\u66f4\u7701\uff1a\u8282\u7701\u8017\u8d39\u7684\u8d44\u6e90\uff0c\u5305\u62ec \u5185\u5b58\u5360\u6709\u3001\u7535\u6c60\u91cf\u3001\u7f51\u7edc\u8d44\u6e90\u7b49<\/li>\n<\/ul>\n<hr \/>\n<h1 id=\"2-\u9700\u4f18\u5316\u7684\u6027\u80fd\u6307\u6807\"><a target=\"_blank\" name=\"t3\"><\/a>2. \u9700\u4f18\u5316\u7684\u6027\u80fd\u6307\u6807<\/h1>\n<p>\u9488\u5bf9\u4e0a\u8ff0\u76ee\u7684\uff0c\u9700\u4f18\u5316\u7684\u6027\u80fd\u6307\u6807 \u542b\uff1a<strong>\u6d41\u7545\u6027\u3001\u7a33\u5b9a\u6027\u3001\u8d44\u6e90\u8282\u7701\u6027<\/strong><\/p>\n<hr \/>\n<h1 id=\"3-\u4f18\u5316\u65b9\u5411\"><a target=\"_blank\" name=\"t4\"><\/a>3. \u4f18\u5316\u65b9\u5411<\/h1>\n<ul>\n<li>\u9488\u5bf9\u4e0a\u8ff0\u6027\u80fd\u6307\u6807\uff0c\u672c\u6587\u4e3b\u8981\u8bb2\u89e3\u7684\u4f18\u5316\u65b9\u5411\u5982\u4e0b\uff1a<\/li>\n<\/ul>\n<p><img decoding=\"async\" title=\"\" src=\"\" alt=\"\u793a\u610f\u56fe\" \/><\/p>\n<ul>\n<li>\u4e0b\u9762\uff0c\u6211\u5c06\u9488\u5bf9\u6bcf\u4e00\u79cd\u6027\u80fd\u6307\u6807\uff0c\u8be6\u7ec6\u8bb2\u89e3\u5176\u4f18\u5316\u65b9\u6848<\/li>\n<\/ul>\n<hr \/>\n<h1 id=\"4-\u6d41\u7545\u6027\"><a target=\"_blank\" name=\"t5\"><\/a>4. \u6d41\u7545\u6027<\/h1>\n<ul>\n<li>\u4f18\u5316\u539f\u56e0<br \/>\n\u5229\u4e8e \u51cf\u5c11\u4f7f\u7528\u4e2d\u7684\u5361\u987f\u3001\u54cd\u5e94\u65f6\u95f4\u4e45\u7b49\u95ee\u9898\uff0c\u7ed9\u4e0e\u7528\u6237\u4e00\u4e2a\u64cd\u4f5c\u6d41\u7545\u7684\u4f53\u9a8c<\/li>\n<li>\u4f18\u5316\u65b9\u5411<br \/>\n\u4e3b\u8981\u9488\u5bf93\u4e2a\u65b9\u9762\u4f18\u5316\uff1a\u542f\u52a8\u901f\u5ea6\u3001\u9875\u9762\u663e\u793a\u901f\u5ea6\u3001\u54cd\u5e94\u901f\u5ea6<\/li>\n<\/ul>\n<h3 id=\"41-\u542f\u52a8\u901f\u5ea6\"><a target=\"_blank\" name=\"t6\"><\/a>4.1 \u542f\u52a8\u901f\u5ea6<\/h3>\n<ul>\n<li>\u4f18\u5316\u539f\u56e0\uff08\u5373 \u542f\u52a8\u901f\u5ea6\u6162\u7684\u539f\u56e0\uff09<br \/>\n\u521d\u6b21\u6253\u5f00\u5e94\u7528\u65f6\uff0c\u9700\u52a0\u8f7d\u5f88\u591a\u8d44\u6e90 or \u529f\u80fd\u903b\u8f91<\/li>\n<li>\u4f18\u5316\u65b9\u6848<br \/>\n\u91c7\u7528\u00a0<strong>\u5f02\u6b65\u52a0\u8f7d\uff08\u591a\u7ebf\u7a0b\uff09\u3001\u5206\u6b65\u52a0\u8f7d\u3001\u5ef6\u671f\u52a0\u8f7d<\/strong>\u7684\u7b56\u7565\uff0c\u51cf\u5c11\u542f\u52a8\u5e94\u7528\u65f6\u52a0\u8f7d\u7684\u4efb\u52a1\uff0c\u4ece\u800c\u63d0\u9ad8\u542f\u52a8\u901f\u5ea6<\/p>\n<blockquote><p>\u7531\u4e8e\u6211\u4eec\u6253\u5f00\u7684\u9875\u9762\u5927\u591a\u662f<code>Activity<\/code>\uff0c\u4e0b\u9762\u5c06\u7ed9\u51fa\u52a0\u901f\u542f\u52a8<code>Activity<\/code>\u7684\u65b9\u5f0f<\/p><\/blockquote>\n<\/li>\n<\/ul>\n<p><img decoding=\"async\" title=\"\" src=\"\" alt=\"\u793a\u610f\u56fe\" \/><\/p>\n<h3 id=\"42-\u9875\u9762\u663e\u793a\u901f\u5ea6\"><a target=\"_blank\" name=\"t7\"><\/a>4.2 \u9875\u9762\u663e\u793a\u901f\u5ea6<\/h3>\n<ul>\n<li>\u4f18\u5316\u539f\u56e0\uff08\u5373 \u9875\u9762\u663e\u793a\u901f\u5ea6\u6162\u7684\u539f\u56e0\uff09<br \/>\na. \u9875\u9762\u9700\u7ed8\u5236\u7684\u5185\u5bb9\uff08\u5e03\u5c40 &amp; \u63a7\u4ef6\uff09\u592a\u591a\uff0c\u4ece\u800c\u5bfc\u81f4\u9875\u9762\u6d4b\u91cf\u65f6\u95f4\u8fc7\u957f<br \/>\nb. \u7ed8\u5236\u6548\u7387\u8fc7\u4f4e\uff0c\u4ece\u800c\u5bfc\u81f4\u7ed8\u5236\u65f6\u95f4\u8fc7\u957f<\/li>\n<li>\u4f18\u5316\u65b9\u6848<br \/>\n\u5e03\u5c40\u4f18\u5316 &amp; \u7ed8\u5236\u4f18\u5316\u3002\u5177\u4f53\u8bf7\u770b\u6587\u7ae0\uff1a<\/p>\n<ol>\n<li><a href=\"https:\/\/blog.csdn.net\/carson_ho\/article\/details\/79674623\" target=\"_blank\" rel=\"noopener\">Android\u6027\u80fd\u4f18\u5316\uff1a\u624b\u628a\u624b\u5e26\u4f60\u5168\u9762\u4e86\u89e3 \u7ed8\u5236\u4f18\u5316<\/a><\/li>\n<li><a href=\"https:\/\/blog.csdn.net\/carson_ho\/article\/details\/79620486\" target=\"_blank\" rel=\"noopener\">Android\u6027\u80fd\u4f18\u5316\uff1a\u5e03\u5c40\u4f18\u5316 \u8be6\u7ec6\u89e3\u6790\uff08\u542b\u3001\u3001\u8bb2\u89e3 \uff09<\/a><\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<h3 id=\"43-\u54cd\u5e94\u901f\u5ea6\"><a target=\"_blank\" name=\"t8\"><\/a>4.3 \u54cd\u5e94\u901f\u5ea6<\/h3>\n<ul>\n<li>\u4f18\u5316\u539f\u56e0<br \/>\n\u5e94\u7528\u7a0b\u5e8f\u51fa\u73b0\u00a0<code>ANR<\/code>\u00a0\u60c5\u51b5\uff0c\u4ece\u800c\u5bfc\u81f4 \u5e94\u7528\u7a0b\u5e8f\u54cd\u5e94\u901f\u5ea6\u6162<\/p>\n<blockquote><p>\u5173\u4e8e<code>ANR<\/code>\u7684\u7b80\u4ecb\u5982\u4e0b<\/p><\/blockquote>\n<\/li>\n<\/ul>\n<p><img decoding=\"async\" title=\"\" src=\"\" alt=\"\u793a\u610f\u56fe\" \/><\/p>\n<ul>\n<li>\u4f18\u5316\u65b9\u6848<br \/>\n<strong>\u4f7f\u7528\u591a\u7ebf\u7a0b<\/strong>\uff0c\u5c06\u5927\u91cf &amp; \u8017\u65f6\u64cd\u4f5c\u653e\u5728\u5de5\u4f5c\u7ebf\u7a0b\u4e2d\u6267\u884c<\/p>\n<blockquote>\n<ol>\n<li>\u591a\u7ebf\u7a0b\u7684\u65b9\u5f0f \u5305\u62ec\uff1a<code>AsyncTask<\/code>\u3001\u7ee7\u627f\u00a0<code>Thread<\/code>\u7c7b\u3001\u5b9e\u73b0\u00a0<code>Runnable<\/code>\u63a5\u53e3\u3001<code>Handler<\/code>\u6d88\u606f\u673a\u5236\u3001<code>HandlerThread<\/code>\u7b49<\/li>\n<li>\u6ce8\uff1a\u5b9e\u9645\u5f00\u53d1\u4e2d\uff0c\u5f53\u4e00\u4e2a\u8fdb\u7a0b\u53d1\u751f\u4e86<code>ANR<\/code>\u540e\uff0c\u7cfb\u7edf\u4f1a\u5728\u00a0<code>\/data\/anr<\/code>\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u00a0<code>traces.txt<\/code>\uff0c\u901a\u8fc7\u5206\u6790\u8be5\u6587\u4ef6\u53ef\u5b9a\u4f4d\u51fa<code>ANR<\/code>\u7684\u539f\u56e0<\/li>\n<\/ol>\n<\/blockquote>\n<\/li>\n<\/ul>\n<h3 id=\"44-\u5176\u4ed6\u4f18\u5316\u65b9\u6848\"><a target=\"_blank\" name=\"t9\"><\/a>4.4 \u5176\u4ed6\u4f18\u5316\u65b9\u6848<\/h3>\n<ul>\n<li>\u5408\u7406\u7684\u5237\u65b0\u673a\u5236<br \/>\n<img decoding=\"async\" title=\"\" src=\"\" alt=\"\u793a\u610f\u56fe\" \/><\/li>\n<li>\u52a8\u753b\u7684\u4f7f\u7528\n<ol>\n<li>\u6839\u636e\u4e0d\u540c\u573a\u666f\u9009\u62e9 \u5408\u9002\u7684\u52a8\u753b\u6846\u67b6<\/li>\n<li>\u4f7f\u7528 \u786c\u4ef6\u52a0\u901f\u7684\u65b9\u5f0f \u63d0\u9ad8\u6d41\u7545\u5ea6<\/li>\n<li>\u4f7f\u7528\u52a8\u753b\u540e\u9700\u505c\u6b62\u52a8\u753b<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<h3 id=\"45-\u603b\u7ed3\"><a target=\"_blank\" name=\"t10\"><\/a>4.5 \u603b\u7ed3<\/h3>\n<p>\u4e0b\u9762\uff0c\u603b\u7ed3 \u5173\u4e8e\u6d41\u7545\u6027\u7684\u6027\u80fd\u4f18\u5316\u65b9\u6848<br \/>\n<img decoding=\"async\" title=\"\" src=\"\" alt=\"\u793a\u610f\u56fe\" \/><\/p>\n<hr \/>\n<h1 id=\"5-\u7a33\u5b9a\u6027\"><a target=\"_blank\" name=\"t11\"><\/a>5. \u7a33\u5b9a\u6027<\/h1>\n<ul>\n<li>\u5f71\u54cd<code>Android<\/code>\u00a0\u5e94\u7528\u7a33\u5b9a\u6027\u7684\u539f\u56e0\u6709\u5f88\u591a\uff0c\u4e3b\u8981\u662f\uff1a\u5e94\u7528\u5d29\u6e83<code>\uff08Crash\uff09<\/code>\u3001\u5e94\u7528\u65e0\u54cd\u5e94<code>\uff08ANR\uff09<\/code><br \/>\n<blockquote><p>\u8fd92\u4e2a\u9519\u8bef\u7684\u7ed3\u679c\u5c06\u5bfc\u81f4\u7a0b\u5e8f\u65e0\u6cd5\u4f7f\u7528<\/p><\/blockquote>\n<\/li>\n<li>\u4e0b\u9762\uff0c\u5c06\u4e3b\u8981\u8bb2\u89e3\u8be52\u4e2a\u4f18\u5316\u65b9\u5411\uff1a\u5e94\u7528\u5d29\u6e83<code>\uff08Crash\uff09<\/code>\u3001\u5e94\u7528\u65e0\u54cd\u5e94<code>\uff08ANR\uff09<\/code><\/li>\n<\/ul>\n<h3 id=\"51-\u5e94\u7528\u65e0\u54cd\u5e94anr\"><a target=\"_blank\" name=\"t12\"><\/a>5.1 \u5e94\u7528\u65e0\u54cd\u5e94\uff08ANR\uff09<\/h3>\n<ul>\n<li>\u7b80\u4ecb<\/li>\n<\/ul>\n<p><img decoding=\"async\" title=\"\" src=\"\" alt=\"\u793a\u610f\u56fe\" \/><\/p>\n<ul>\n<li>\u4f18\u5316\u539f\u7406<br \/>\n\u5c3d\u91cf\u907f\u514d\u5e94\u7528\u7a0b\u5e8f\u51fa\u73b0\u00a0<code>ANR<\/code>\u00a0\u60c5\u51b5<\/li>\n<li>\u4f18\u5316\u65b9\u6848<br \/>\n<strong>\u4f7f\u7528\u591a\u7ebf\u7a0b<\/strong>\uff0c\u5c06\u5927\u91cf &amp; \u8017\u65f6\u64cd\u4f5c\u653e\u5728\u5de5\u4f5c\u7ebf\u7a0b\u4e2d\u6267\u884c<\/p>\n<blockquote>\n<ol>\n<li>\u591a\u7ebf\u7a0b\u7684\u65b9\u5f0f \u5305\u62ec\uff1a<code>AsyncTask<\/code>\u3001\u7ee7\u627f\u00a0<code>Thread<\/code>\u7c7b\u3001\u5b9e\u73b0\u00a0<code>Runnable<\/code>\u63a5\u53e3\u3001<code>Handler<\/code>\u6d88\u606f\u673a\u5236\u3001<code>HandlerThread<\/code>\u7b49<\/li>\n<li>\u5173\u4e8e\u591a\u7ebf\u7a0b\u7684\u4f7f\u7528\uff0c\u53ef\u770b\u6211\u5199\u7684\u5173\u4e8e\u591a\u7ebf\u7a0b\u7684\u6587\u96c6\uff1a<a href=\"https:\/\/blog.csdn.net\/column\/details\/14816.html\" target=\"_blank\" rel=\"noopener\">\u591a\u7ebf\u7a0b\u7cfb\u5217<\/a><\/li>\n<li>\u6ce8\uff1a\u5b9e\u9645\u5f00\u53d1\u4e2d\uff0c\u5f53\u4e00\u4e2a\u8fdb\u7a0b\u53d1\u751f\u4e86<code>ANR<\/code>\u540e\uff0c\u7cfb\u7edf\u4f1a\u5728\u00a0<code>\/data\/anr<\/code>\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u00a0<code>traces.txt<\/code>\uff0c\u901a\u8fc7\u5206\u6790\u8be5\u6587\u4ef6\u53ef\u5b9a\u4f4d\u51fa<code>ANR<\/code>\u7684\u539f\u56e0<\/li>\n<\/ol>\n<\/blockquote>\n<\/li>\n<\/ul>\n<h3 id=\"52-\u5e94\u7528\u5d29\u6e83crash\"><a target=\"_blank\" name=\"t13\"><\/a>5.2 \u5e94\u7528\u5d29\u6e83\uff08Crash\uff09<\/h3>\n<ul>\n<li>\u4f18\u5316\u539f\u7406<br \/>\n\u5e94\u7528\u5d29\u6e83<code>Crash<\/code>\u5f88\u591a\u60c5\u51b5\u662f\u56e0\u4e3a\u00a0<strong>\u5185\u5b58\u6ea2\u51fa<\/strong>\uff0c\u5373<code>OOM<\/code>\uff1b\u6545 \u9700\u907f\u514d\u51fa\u73b0\u00a0<code>OOM<\/code>\u73b0\u8c61<\/p>\n<blockquote><p>\u5185\u5b58\u6ea2\u51fa \u7b80\u4ecb\uff1a<br \/>\n<img decoding=\"async\" title=\"\" src=\"\" alt=\"\u793a\u610f\u56fe\" \/><\/p><\/blockquote>\n<\/li>\n<li>\u4f18\u5316\u65b9\u6848<br \/>\n\u5173\u4e8e\u5185\u5b58\u4f18\u5316\uff0c\u5177\u4f53\u8bf7\u770b\u6587\u7ae0\uff1a<a href=\"https:\/\/blog.csdn.net\/carson_ho\/article\/details\/79549417\" target=\"_blank\" rel=\"noopener\">Android\u6027\u80fd\u4f18\u5316\uff1a\u8fd9\u662f\u4e00\u4efd\u5168\u9762&amp;\u8be6\u7ec6\u7684\u5185\u5b58\u4f18\u5316\u6307\u5357<\/a><\/li>\n<\/ul>\n<h3 id=\"53-\u603b\u7ed3\"><a target=\"_blank\" name=\"t14\"><\/a>5.3 \u603b\u7ed3<\/h3>\n<p>\u4e0b\u9762\uff0c\u603b\u7ed3 \u5173\u4e8e\u7a33\u5b9a\u6027\u7684\u6027\u80fd\u4f18\u5316\u65b9\u6848<br \/>\n<img decoding=\"async\" title=\"\" src=\"\" alt=\"\u793a\u610f\u56fe\" \/><\/p>\n<hr \/>\n<h1 id=\"6-\u8d44\u6e90\u8282\u7701\u6027\"><a target=\"_blank\" name=\"t15\"><\/a>6. \u8d44\u6e90\u8282\u7701\u6027<\/h1>\n<ul>\n<li>\u4f18\u5316\u539f\u56e0<br \/>\n\u7531\u4e8e\u79fb\u52a8\u8bbe\u5907\u7684\u786c\u4ef6\u6027\u80fd\u6709\u9650\uff0c\u6545\u51cf\u5c11\u5e94\u7528\u7a0b\u5e8f\u7684\u8d44\u6e90\u6d88\u8017\u663e\u5f97\u5341\u5206\u91cd\u8981<\/li>\n<li>\u4f18\u5316\u65b9\u5411<br \/>\n\u5185\u5b58\u5927\u5c0f\u3001\u5b89\u88c5\u5305\u5927\u5c0f\u3001\u8017\u7535\u91cf &amp; \u7f51\u7edc\u6d41\u91cf<\/li>\n<\/ul>\n<h3 id=\"61-\u5185\u5b58\u4f18\u5316\"><a target=\"_blank\" name=\"t16\"><\/a>6.1 \u5185\u5b58\u4f18\u5316<\/h3>\n<ul>\n<li>\u4f18\u5316\u539f\u56e0<br \/>\n\u907f\u514d\u56e0\u4e0d\u6b63\u786e\u4f7f\u7528\u5185\u5b58 &amp; \u7f3a\u4e4f\u7ba1\u7406\uff0c\u4ece\u800c\u51fa\u73b0\u00a0<strong>\u5185\u5b58\u6cc4\u9732<code>\uff08ML\uff09<\/code>\u3001\u5185\u5b58\u6ea2\u51fa<code>\uff08OOM\uff09<\/code>\u3001\u5185\u5b58\u7a7a\u95f4\u5360\u7528\u8fc7\u5927<\/strong>\u00a0\u7b49\u95ee\u9898\uff0c\u6700\u7ec8\u5bfc\u81f4\u5e94\u7528\u7a0b\u5e8f\u5d29\u6e83\uff08<code>Crash<\/code>\uff09<\/li>\n<li>\u4f18\u5316\u65b9\u5411<br \/>\n\u5e38\u89c1\u7684\u5185\u5b58\u95ee\u9898\u5982\u4e0b<\/p>\n<ol>\n<li>\u5185\u5b58\u6cc4\u9732<\/li>\n<li>\u5185\u5b58\u6296\u52a8<\/li>\n<li>\u56fe\u7247<code>Bitmap<\/code>\u76f8\u5173<\/li>\n<li>\u4ee3\u7801\u8d28\u91cf &amp; \u6570\u91cf<\/li>\n<li>\u65e5\u5e38\u4e0d\u6b63\u786e\u4f7f\u7528<\/li>\n<\/ol>\n<\/li>\n<li>\u5177\u4f53\u4f18\u5316\u65b9\u6848<br \/>\n\u4e0b\u9762\uff0c\u6211\u5c06\u8be6\u7ec6\u5206\u6790\u6bcf\u9879\u7684\u5185\u5b58\u95ee\u9898 &amp; \u7ed9\u51fa\u4f18\u5316\u65b9\u6848\u3002\u5177\u4f53\u8bf7\u770b\u6587\u7ae0\uff1a<\/li>\n<li><a href=\"https:\/\/blog.csdn.net\/carson_ho\/article\/details\/79549417\" target=\"_blank\" rel=\"noopener\">Android\u6027\u80fd\u4f18\u5316\uff1a\u8fd9\u662f\u4e00\u4efd\u5168\u9762&amp;\u8be6\u7ec6\u7684\u5185\u5b58\u4f18\u5316\u6307\u5357<\/a><\/li>\n<li><a href=\"https:\/\/blog.csdn.net\/carson_ho\/article\/details\/79407707\" target=\"_blank\" rel=\"noopener\">Android\u6027\u80fd\u4f18\u5316\uff1a\u624b\u628a\u624b\u5e26\u4f60\u5168\u9762\u4e86\u89e3 \u5185\u5b58\u6cc4\u9732 &amp; \u89e3\u51b3\u65b9\u6848<\/a><\/li>\n<\/ul>\n<h3 id=\"62-\u51cf\u5c11\u5b89\u88c5\u5305\u5927\u5c0f\"><a target=\"_blank\" name=\"t17\"><\/a>6.2 \u51cf\u5c11\u5b89\u88c5\u5305\u5927\u5c0f<\/h3>\n<ul>\n<li>\u4f18\u5316\u539f\u56e0<br \/>\n\u5e94\u7528\u7a0b\u5e8f\u7684\u5b89\u88c5\u5305\u5927\u5c0f\u867d\u5bf9\u5e94\u7528\u7a0b\u5e8f\u7684\u4f7f\u7528\u65e0\u5f71\u54cd\uff0c\u4f46\u5f71\u54cd\u7684\u662f\uff1a<\/p>\n<ol>\n<li>\u7a7a\u95f4\u5360\u6709\u7387\uff1a\u5373 \u5e94\u7528\u7a0b\u5e8f\u5360\u6709\u624b\u673a\u5185\u5b58\u7684\u5927\u5c0f<\/li>\n<li>\u4e0b\u8f7d\u95e8\u69db\uff1a\u5e94\u7528\u7684\u5b89\u88c5\u5305\u8d8a\u5927\uff0c\u7528\u6237\u4e0b\u8f7d\u7684\u95e8\u69db\u8d8a\u9ad8<\/li>\n<\/ol>\n<blockquote><p>\u7279\u522b\u5728\u79fb\u52a8\u7f51\u7edc\u4e0b\uff0c\u7528\u6237\u4e0b\u8f7d\u5e94\u7528\u65f6\uff0c\u5bf9\u5b89\u88c5\u5305\u5927\u5c0f\u7684\u8981\u6c42\u66f4\u9ad8\uff0c\u56e0\u6b64\u51cf\u5c0f\u5b89\u88c5\u5305\u5927\u5c0f\u53ef\u8ba9\u66f4\u591a\u7528\u6237\u613f\u610f\u4e0b\u8f7d &amp; \u4f7f\u7528\u4ea7\u54c1<\/p><\/blockquote>\n<\/li>\n<li>\u5b89\u88c5\u5305\u7ed3\u6784 \u4ecb\u7ecd<\/li>\n<\/ul>\n<p><img decoding=\"async\" title=\"\" src=\"\" alt=\"\u793a\u610f\u56fe\" \/><\/p>\n<ul>\n<li>\u4f18\u5316\u65b9\u6848<\/li>\n<\/ul>\n<p><img decoding=\"async\" title=\"\" src=\"\" alt=\"\u793a\u610f\u56fe\" \/><\/p>\n<h3 id=\"63-\u51cf\u5c11\u7f51\u7edc\u6d41\u91cf\"><a target=\"_blank\" name=\"t18\"><\/a>6.3 \u51cf\u5c11\u7f51\u7edc\u6d41\u91cf<\/h3>\n<ul>\n<li>\u4f18\u5316\u539f\u56e0<br \/>\n\u6bcf\u6b21\u83b7\u53d6\u8d44\u6e90\u65f6 \u90fd\u901a\u8fc7\u6d41\u91cf &amp; \u7f51\u7edc\u52a0\u8f7d\u7684\u65b9\u5f0f\uff0c\u5c06\u8017\u8d39\u5927\u91cf\u7f51\u7edc\u6d41\u91cf<\/li>\n<li>\u4f18\u5316\u65b9\u6848<br \/>\n\u4e3b\u8981\u901a\u8fc7\u00a0<strong>\u7f13\u5b58<\/strong>\u00a0\u51cf\u5c11\u7f51\u7edc\u6d41\u91cf\uff0c\u91c7\u7528\u4e09\u7ea7\u7f13\u5b58\u65b9\u6848\uff1a\u5373 \u5185\u5b58\u7f13\u5b58 &#8211; \u786c\u76d8\u7f13\u5b58- \u6570\u636e\u5e93- \u6587\u4ef6 &#8211; \u7f51\u7edc\u7f13\u5b58<\/p>\n<blockquote><p>\u5177\u4f53\u63cf\u8ff0\uff1a\u5f53\u52a0\u8f7d\u8d44\u6e90\u65f6\uff0c\u5148\u4ece\u5185\u5b58\u7f13\u5b58\u4e2d\u5bfb\u627e\uff1b\u82e5\u5185\u5b58\u7f13\u5b58\u4e2d\u6ca1\u6709\uff0c\u5219\u4ece\u6587\u4ef6\u7f13\u5b58\u4e2d\u5bfb\u627e\uff1b\u82e5\u6587\u4ef6\u7f13\u5b58\u4e2d\u6ca1\u6709\uff0c\u6700\u7ec8\u518d\u901a\u8fc7\u6d41\u91cf\u4ece\u7f51\u7edc\u4e2d\u52a0\u8f7d\u83b7\u53d6<\/p><\/blockquote>\n<\/li>\n<li>\u5177\u4f53\u5e94\u7528<br \/>\n\u5177\u4f53\u8bf7\u770b\u6587\u7ae0\uff1a<br \/>\n<a href=\"https:\/\/www.jianshu.com\/p\/5e7075f4875f\" target=\"_blank\" rel=\"noopener\">Android\uff1a\u624b\u628a\u624b\u6559\u4f60\u6784\u5efa WebView \u7684\u7f13\u5b58\u673a\u5236 &amp; \u8d44\u6e90\u9884\u52a0\u8f7d\u65b9\u6848<\/a><\/li>\n<\/ul>\n<h3 id=\"64-\u51cf\u5c11\u5e94\u7528\u7684\u8017\u7535\u91cf\"><a target=\"_blank\" name=\"t19\"><\/a>6.4 \u51cf\u5c11\u5e94\u7528\u7684\u8017\u7535\u91cf<\/h3>\n<ul>\n<li>\u4f18\u5316\u539f\u56e0<br \/>\n\u968f\u7740\u667a\u80fd\u624b\u673a\u666e\u53ca &amp; \u5e94\u7528\u7a0b\u5e8f<code>App<\/code>\u7684\u529f\u80fd\u53d1\u5c55\uff0c\u4eba\u4eec\u7684\u65e5\u5e38\u751f\u6d3b\u90fd\u79bb\u4e0d\u5f00\u667a\u80fd\u624b\u673a &amp; \u5404\u5f0f\u5404\u6837\u7684\u5e94\u7528\u7a0b\u5e8f<code>App<\/code>\uff0c\u6545 \u5e94\u7528\u7a0b\u5e8f\u7684\u8017\u7535\u91cf\u6307\u6807\u5219\u663e\u5f97\u5341\u5206\u91cd\u8981<\/li>\n<\/ul>\n<p>\u5177\u4f53\u4f18\u5316\u65b9\u6848\u5982\u4e0b\uff1a<br \/>\n<img decoding=\"async\" title=\"\" src=\"\" alt=\"\u793a\u610f\u56fe\" \/><\/p>\n<h3 id=\"65-\u603b\u7ed3\"><a target=\"_blank\" name=\"t20\"><\/a>6.5 \u603b\u7ed3<\/h3>\n<p>\u4e0b\u9762\uff0c\u603b\u7ed3 \u5173\u4e8e\u8d44\u6e90\u8282\u7701\u6027\u7684\u6027\u80fd\u4f18\u5316\u65b9\u6848<br \/>\n<img decoding=\"async\" title=\"\" src=\"\" alt=\"\u793a\u610f\u56fe\" \/><\/p>\n<hr \/>\n<h1 id=\"7-\u603b\u7ed3\"><a target=\"_blank\" name=\"t21\"><\/a>7. \u603b\u7ed3<\/h1>\n<ul>\n<li>\u533a\u522b\u4e8e \u529f\u80fd\u6027\u5f00\u53d1\u9700\u6c42\u7684\u77ed\u671f\u6027\uff0c<strong>\u6027\u80fd\u4f18\u5316\u662f\u8d2f\u7a7f\u6574\u4e2a\u5e94\u7528\u7a0b\u5e8f<code>App<\/code>\u9879\u76ee\u7684\u6301\u7eed\u6027\u9700\u6c42<\/strong>\uff1b\u867d\u9879\u76ee\u4e00\u5f00\u59cb\u65f6\uff0c<strong>\u6027\u80fd\u4f18\u5316\u7684\u4f18\u5148\u7ea7\u8f83\u4f4e\uff0c\u4f46\u5f53\u5e94\u7528\u7a0b\u5e8f<code>App<\/code>\u7684\u7528\u6237\u4f53\u91cf\u8fbe\u5230\u4e00\u5b9a\u89c4\u6a21\u65f6\uff0c\u6027\u80fd\u4f18\u5316 \u5219\u975e\u5e38\u91cd\u8981<\/strong><\/li>\n<li>\u672c\u6587\u5168\u9762\u603b\u7ed3\u4e86<code>Android<\/code>\u5f00\u53d1\u4e2d\u7684\u6027\u80fd\u4f18\u5316 \u6240\u6709\u77e5\u8bc6\uff0c\u542b\uff1a\u4f18\u5316\u65b9\u5411\u3001\u539f\u56e0 &amp; \u5177\u4f53\u4f18\u5316\u65b9\u6848\uff0c\u4e0b\u9762\u75282\u5f20\u56fe\u603b\u7ed3\uff1a<\/li>\n<\/ul>\n<p><img decoding=\"async\" title=\"\" src=\"\" alt=\"\u6027\u80fd\u4f18\u5316\u6982\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" title=\"\" src=\"\" alt=\"\u793a\u610f\u56fe\" \/><\/p>\n<ul>\n<li>\u6709\u5174\u8da3\u53ef\u4ee5\u7ee7\u7eed\u5173\u6ce8<a href=\"https:\/\/blog.csdn.net\/carson_ho\" target=\"_blank\" rel=\"noopener\">Carson_Ho\u7684\u5b89\u5353\u5f00\u53d1\u7b14\u8bb0<\/a><\/li>\n<\/ul>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/blog.csdn.net\/carson_ho\/article\/ &hellip;<\/p>\n<p class=\"read-more\"><a href=\"http:\/\/zerobox.org\/notes\/1150.html\">\u7ee7\u7eed\u9605\u8bfb &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[204],"class_list":["post-1150","post","type-post","status-publish","format-standard","hentry","tag-android"],"views":4007,"_links":{"self":[{"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/posts\/1150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/comments?post=1150"}],"version-history":[{"count":0,"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/posts\/1150\/revisions"}],"wp:attachment":[{"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/media?parent=1150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/categories?post=1150"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/tags?post=1150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}