{"id":3599,"date":"2023-07-05T16:25:51","date_gmt":"2023-07-05T08:25:51","guid":{"rendered":"https:\/\/learn-house.idv.tw\/?p=3599"},"modified":"2023-07-05T16:38:13","modified_gmt":"2023-07-05T08:38:13","slug":"%e5%9f%b7%e8%a1%8ccts%e4%b8%80%e7%9b%b4%e9%81%87%e5%88%b0-aapt_parser_failed","status":"publish","type":"post","link":"https:\/\/learn-house.idv.tw\/?p=3599","title":{"rendered":"\u57f7\u884cCTS\u4e00\u76f4\u9047\u5230 AAPT_PARSER_FAILED"},"content":{"rendered":"<p>\u904b\u884cCTS\u6703\u767c\u73fe\u6709\u4e9b\u6e2c\u9805\u6703\u51fa\u73fe\u985e\u4f3c\u4ee5\u4e0b\u7684error message\uff1a<\/p>\n<table style=\"border: 1px solid #fcfcfc; padding: 1px; background-color: #000000;\" width=\"100%\">\n<tbody>\n<tr>\n<td>\n<div style=\"padding: 1px; color: #ffffff; line-height: 1.5;\">Early failure resulting in no testRunStart. Results might be inconsistent:<br \/>\ncom.android.tradefed.targetprep.TargetSetupError[AAPT_PARSER_FAILED|520050|DEPENDENCY_ISSUE]: AaptParser failed for file CtsContentTestCases.apk. The APK won&#8217;t be installed [XXXX AA]<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4ee3\u8868\u4f60\u7684aapt2\u7248\u672c\u592a\u820a\uff0c\u9700\u8981\u5230\u5b98\u7db2\u4e0b\u8f09\u6700\u65b0\u7248\u672c\u53d6\u4ee3<br \/>\n<a href=\"https:\/\/maven.google.com\/web\/index.html#com.android.tools.build:aapt2\">https:\/\/maven.google.com\/web\/index.html#com.android.tools.build:aapt2<\/a><br \/>\n<!--more-->\u53ef\u4ee5\u76f4\u63a5\u9078\u64c7\u6700\u65b0\u7684\u4e0b\u8f09\uff1a<em>e.g. 8.2.0-alpha10-10154469<\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone \" src=\"https:\/\/lh3.googleusercontent.com\/pw\/AJFCJaVT1R2CDxCrGc3tdF21pCEZM7QsuC5XZswOjfV_0M-w2VizhcMJ8dBLA_eX_fiIbBu2OKUgRuf8tSBJ7OxUN5KXnVNMMtbspAMICU3Aqv97GQe1rhcSH95D5xlrO3z1kRGg7GxDt_rpn5EfangTPzb39g=w1159-h374-s-no?authuser=0\" width=\"552\" height=\"178\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone \" src=\"https:\/\/lh3.googleusercontent.com\/pw\/AJFCJaVfa9wES6ku_ddBNaORw8Y4RFHzt1AgaWk6tp8yr766rPEp3KLOXoI7ywnaLygppLcIXSq2ZmWIzPiQCCYvBz6G4Q7gWV6bQfSoW4Sgh8rDImUh4N0laSuly3wh1nyYOZEeuXU93MIHNuOqgiYrfmuvfA=w772-h439-s-no?authuser=0\" width=\"490\" height=\"279\" \/><\/p>\n<p>Artifact(s)\u7684\u5730\u65b9\u6703\u6709\u5e7e\u500bjar\u6a94\u8def\u5f91\u4e0b\u8f09\uff0c\u9ec3\u8272\u7684\u6a19\u8a3b\u7684\u7406\u8ad6\u4e0a\u70balinux\u7248\u672c\uff0c\u7b2c\u4e09\u500bjar\u7684\u8def\u5f91\u70bawindows\u3002\u8acb\u81ea\u884c\u9078\u64c7\u81ea\u5df1\u904b\u884c\u7684\u7cfb\u7d71\u4e0b\u8f09\u3002<br \/>\n\u518d\u4f86\u53d6\u4ee3\u6389\/lib\/android-sdk\/build-tools\/debian\u4e0b\u7684aapt2\uff0c\u5728\u53d6\u4ee3\u524d\u6700\u597d\u5148\u5099\u4efd\u4e00\u4e0b\u3002<br \/>\n\u5927\u529f\u544a\u6210\u5f8c\u518d\u904b\u884c\u5c31\u4e0d\u6703\u518d\u51fa\u73feAAPT_PARSER_FAILED\u4e86\u3002<br \/>\n\u53e6\u5916\u5982\u679c\u7fd2\u6163\u5728root\u4f7f\u7528\u8005\u4e0b\u904b\u884cCTS\u7684\u8a71\uff0c\u5247\u5c07aapt2\u653e\u5230\/usr\/local\/sbin\u4e0b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u904b\u884cCTS\u6703\u767c\u73fe\u6709\u4e9b\u6e2c\u9805\u6703\u51fa\u73fe\u985e\u4f3c\u4ee5\u4e0b\u7684error message\uff1a Early failure result<span class=\"post-excerpt-end\">&hellip;<\/span><\/p>\n<p class=\"more-link\"><a href=\"https:\/\/learn-house.idv.tw\/?p=3599\" class=\"themebutton\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-3599","post","type-post","status-publish","format-standard","hentry","category-5"],"_links":{"self":[{"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/3599","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3599"}],"version-history":[{"count":0,"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/3599\/revisions"}],"wp:attachment":[{"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3599"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learn-house.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}