{"id":342823,"date":"2022-12-18T03:00:16","date_gmt":"2022-12-18T03:00:16","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=342823"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2022-12-18T03:00:16","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=342823","title":{"rendered":"<span>\u0421\u0430\u043c\u044b\u0439 \u0437\u0430\u043f\u0443\u0442\u0430\u043d\u043d\u044b\u0439 \u043a\u0440\u0430\u0448 \u0432 \u043c\u043e\u0435\u0439 \u0436\u0438\u0437\u043d\u0438<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h2>\u041f\u0440\u0438\u0432\u0435\u0442, \u043c\u043e\u0439 \u0434\u043e\u0440\u043e\u0433\u043e\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c, \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u043f\u043e\u0432\u0435\u0434\u0430\u044e \u0442\u0435\u0431\u0435 \u043e\u0447\u0435\u043d\u044c \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043a\u0440\u0430\u0448 \u043d\u0430 \u0430\u043d\u0434\u0440\u043e\u0438\u0434\u0435 \u0434\u043e\u0432\u0435\u043b \u043c\u0435\u043d\u044f \u0434\u043e \u043f\u0435\u0440\u0432\u044b\u0445 \u0441\u0435\u0434\u0438\u043d. \u0418 \u043a\u0430\u043a\u0438\u0435 \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0435\u0441\u0442\u044c \u0443 \u0430\u043d\u0434\u0440\u043e\u0438\u0434\u0430 \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 dex \u0444\u0430\u0439\u043b\u0430\u043c\u0438.<\/h2>\n<p>\u042f \u0434\u0435\u043b\u0430\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0410\u043b\u044c\u0444\u0430 \u041c\u043e\u0431\u0430\u0439\u043b \u0434\u043b\u044f \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043b\u0438\u0446. \u041e\u0434\u043d\u0430\u0436\u0434\u044b \u0441 \u0443\u0442\u0440\u0430 \u043f\u043e\u0440\u0430\u043d\u044c\u0448\u0435 \u043c\u043d\u0435 \u043f\u0440\u0438\u043b\u0435\u0442\u0435\u043b \u0442\u0438\u043a\u0435\u0442, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u044b\u043b\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 \u043b\u0430\u0433\u0430\u044e\u0449\u0438\u043c UI. \u042d\u0442\u043e\u0442 \u0431\u0430\u0433 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043b\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 21 api. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a\u0430\u043a \u0434\u0435\u043b\u0430\u043b\u0438 \u043d\u0430\u0448\u0438 \u043f\u0440\u0435\u0434\u043a\u0438 \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u044d\u0442\u043e\u0442 \u0431\u0430\u0433.  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u044e \u0431\u0438\u043b\u0434 \u0438 \u0441\u0440\u0430\u0437\u0443 \u0432\u0438\u0436\u0443 \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0435: <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/863\/a2c\/b9d\/863a2cb9dde2f1f44ff6c413ffb57722.png\" alt=\"\" title=\"\" width=\"3840\" height=\"724\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/863\/a2c\/b9d\/863a2cb9dde2f1f44ff6c413ffb57722.png\"\/><figcaption><\/figcaption><\/figure>\n<p><strong>\u041d\u043e \u043f\u043e\u0433\u043e\u0434\u0438 \u043a\u0430&#8230;<\/strong><br \/>\u041a\u0430\u043a \u0442\u0435\u0441\u0442\u0435\u0440 \u0441\u043c\u043e\u0433 \u0434\u043e\u0439\u0442\u0438 \u0434\u043e \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u044d\u043a\u0440\u0430\u043d\u0430 \u0435\u0441\u043b\u0438 \u043d\u0430 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u0440\u0430\u0448\u0438\u0442\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u0438 \u0432\u0445\u043e\u0434\u0435 ?<\/p>\n<p>\u042f \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043b\u0441\u044f \u0432 \u043f\u0443\u0442\u0435\u0448\u0435\u0441\u0442\u0432\u0438\u0435 \u0434\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430, \u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443 \u043d\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u043b\u043e\u0441\u044c \u043a\u0430\u043a \u043d\u0443\u0436\u043d\u043e. \u0418 \u0442\u0443\u0442 \u044f \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b, \u0447\u0442\u043e \u0442\u0435\u0441\u0442\u0435\u0440\u044b \u0431\u0435\u0440\u0443\u0442 apk \u0441 binary, \u043a\u0443\u0434\u0430 \u043e\u043d\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u043d\u0430\u0448\u0438\u043c CI \u0438 \u0441\u0430\u043c\u044b\u0439 \u0432\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0442\u0430\u043c \u0443\u0436\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d R8, \u0430 \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0431\u043e\u0440\u043a\u0430\u0445 R8 \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f. <br \/>\u041d\u0443 \u0447\u0442\u043e \u0436, \u0432\u043e\u0442 \u043e\u043d\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u0435 \u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432 R8 \u0432\u0435\u0434\u044c \u0442\u0430\u043a ? <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/59f\/ecd\/1ca\/59fecd1cac6ed07b270b09ce949fe238.jpeg\" width=\"925\" height=\"820\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/59f\/ecd\/1ca\/59fecd1cac6ed07b270b09ce949fe238.jpeg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p><em>\u041a\u0442\u043e \u0442\u0430\u043a\u043e\u0439 \u044d\u0442\u043e\u0442 R8 \u0435\u0441\u043b\u0438 \u0442\u044b \u043d\u0435 \u0437\u043d\u0430\u0435\u0448\u044c &#8212;<\/em> <a href=\"https:\/\/developer.android.com\/studio\/build\/shrink-code\" rel=\"noopener noreferrer nofollow\">https:\/\/developer.android.com\/studio\/build\/shrink-code<\/a><\/p>\n<p>\u041d\u043e \u043a\u0430\u043a \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c, \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u0432\u043e\u0432\u0441\u0435 \u043d\u0435 \u0432 R8, R8 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u044b\u043b \u043a\u043b\u044e\u0447\u043e\u043c \u043a \u0440\u0435\u0448\u0435\u043d\u0438\u044e \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u0433\u0430\u0434\u043a\u0438. \u0418 \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0441 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0435\u0439, \u043a\u043e\u0433\u0434\u0430 \u0438\u0437-\u0437\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0433\u043e R8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u0440\u0430\u0448\u0438\u0442\u0441\u044f. \u0423\u0441\u0443\u0433\u0443\u0431\u043b\u044f\u043b\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0435\u0449\u0435 \u0438 \u0442\u043e, \u0447\u0442\u043e \u043a\u0440\u0430\u0448 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 21 api, \u0432\u0435\u0440\u0441\u0438\u0438 \u0432\u044b\u0448\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0448\u0442\u0430\u0442\u043d\u043e. <\/p>\n<p><strong>\u0414\u0430\u0432\u0430\u0439 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c\u0441\u044f \u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u043a\u0443 \u0438 \u0442\u044b \u043f\u043e\u0434\u0443\u043c\u0430\u0435\u0448\u044c \u0432 \u0447\u0435\u043c \u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u0435\u043b\u043e ?<\/strong> <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/5f5\/75c\/265\/5f575c26582e97b053ec603b8d32ef97.png\" width=\"1208\" height=\"792\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5f5\/75c\/265\/5f575c26582e97b053ec603b8d32ef97.png\"\/><figcaption><\/figcaption><\/figure>\n<p><strong>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043c ! <\/strong><\/p>\n<p>\u041d\u0430 \u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u044f \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0441\u044f \u0432 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u043d\u043e\u0439 \u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u0438\u0437\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043f\u043e\u0433\u043b\u0443\u0431\u0436\u0435 \u0438 \u0440\u0430\u0441\u0447\u0435\u0445\u043b\u0438\u043b \u0434\u0435\u0431\u0430\u0433\u0433\u0435\u0440: <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b57\/52e\/1aa\/b5752e1aa7cd5b6f8921caeb18a473d9.png\" width=\"3840\" height=\"1172\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b57\/52e\/1aa\/b5752e1aa7cd5b6f8921caeb18a473d9.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u0430\u0432\u0430\u0439 \u043f\u0440\u0438\u0441\u043c\u043e\u0442\u0440\u0438\u043c\u0441\u044f \u043a \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0443. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 TextViewModel(), \u0430 \u043e\u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a TextViewStyle.H1 \u0438 \u043d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0435, \u043c\u044b \u043b\u043e\u0432\u0438\u043c NoClassDefFoundError. \u0415\u0449\u0435 \u0440\u0430\u0437 \u043f\u0440\u043e\u0448\u0443 \u0442\u0435\u0431\u044f \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0442\u043e \u0447\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 21 api \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0441\u0431\u043e\u0440\u043a\u0435 \u0431\u0435\u0437 R8. <\/p>\n<p>\u0423 \u043c\u0435\u043d\u044f \u0432\u0441\u0435 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435 \u0431\u044b\u043b\u043e \u0438\u0434\u0435\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u0435\u0434\u043e\u0432\u0441\u043a\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0438 \u0443\u0434\u0430\u043b\u0438\u043b \u044d\u0442\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443: <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/dc7\/549\/230\/dc7549230f6f622dd0eea57a63d26c02.png\" width=\"3840\" height=\"716\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/dc7\/549\/230\/dc7549230f6f622dd0eea57a63d26c02.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0421\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0442\u0430\u043a\u043e\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d46\/0c9\/c3f\/d460c9c3f9224960f14a3bf56385a9f7.png\" width=\"3840\" height=\"412\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d46\/0c9\/c3f\/d460c9c3f9224960f14a3bf56385a9f7.png\"\/><figcaption><\/figcaption><\/figure>\n<p>&#171;\u041d\u0443 \u0445\u043e\u0442\u044f \u0431\u044b \u0434\u0440\u0443\u0433\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430, \u0443\u0436\u0435 \u043b\u0443\u0447\u0448\u0435, \u0447\u0435\u043c \u043d\u0438\u0447\u0435\u0433\u043e&#187; &#8212; \u043f\u043e\u0434\u0443\u043c\u0430\u043b \u044f. \u041d\u043e \u043d\u0435 \u0442\u0443\u0442 \u0442\u043e \u0431\u044b\u043b\u043e, \u0441\u0442\u043e\u0438\u043b\u043e \u043f\u043e\u0441\u043a\u0440\u043e\u043b\u0438\u0442\u044c \u0441\u0442\u0435\u043a\u0442\u0440\u0435\u0439\u0441 \u0438: <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b8b\/0da\/e13\/b8b0dae1375929785f495d2acb141872.png\" width=\"3840\" height=\"548\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b8b\/0da\/e13\/b8b0dae1375929785f495d2acb141872.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 ClassNotFoundException \u043e\u0441\u0442\u0430\u043b\u0430\u0441\u044c. \u0418 \u043e\u043d\u0430 \u0438 \u043d\u0435 \u043c\u043e\u0433\u043b\u0430 \u0443\u0439\u0442\u0438 \u043e\u0442 \u0442\u0430\u043a\u043e\u0433\u043e, \u0437\u0430\u0433\u0432\u043e\u0437\u0434\u043a\u0430 \u043b\u0435\u0436\u0430\u043b\u0430 \u0433\u043b\u0443\u0431\u0436\u0435 \u0447\u0435\u043c \u044f \u0434\u0443\u043c\u0430\u043b. \u041d\u043e \u043d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u044f \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b \u043b\u043e\u0433 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u0435\u0435 \u0438 \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0433\u0434\u0435-\u0442\u043e \u0432 dex \u0444\u0430\u0439\u043b\u0430\u0445. \u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u0432\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442, \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0441\u043f\u043e\u043d\u0442\u0430\u043d\u043d\u043e, \u0432 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0432\u0435\u0440\u0441\u0438\u0439 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043f\u0440\u0438\u0447\u0435\u043c \u0441 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0435\u0435 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0443\u0436\u0435 \u043f\u0440\u043e\u0448\u043b\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u043b\u0438\u0437\u043e\u0432, <em>\u043d\u043e \u043e\u043d\u0430 \u043d\u0435 \u0431\u044b\u043b\u0430 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0430, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0431\u043e\u0440\u043a\u0430\u0445 \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u0434 5 \u0430\u043d\u0434\u0440\u043e\u0438\u0434.<\/em> \u041d\u0443 \u0447\u0442\u043e \u0434\u0440\u0443\u0436\u0438\u0449\u0435 \u043f\u043e\u0440\u0430 \u043f\u043e\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0434\u043d\u043e, <strong>\u0432 \u0441\u0432\u044f\u0442\u0443\u044e \u0441\u0432\u044f\u0442\u044b\u0445 &#8212; \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0430\u043d\u0434\u0440\u043e\u0438\u0434\u0430<\/strong>. \u041f\u0440\u0438\u0447\u0435\u043c \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0438\u043c\u0435\u043d\u043d\u043e 21 \u0432\u0435\u0440\u0441\u0438\u044f api \u0430\u043d\u0434\u0440\u043e\u0438\u0434\u0430. \u042f \u0437\u0430\u0433\u043b\u044f\u043d\u0443\u043b \u0432 \u0444\u0430\u0439\u043b\u0438\u043a \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c  runtime\/dex_file.cc, \u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u043c\u0435\u0442\u043e\u0434 <code>bool DexFile::OpenFromZip<\/code><\/p>\n<p><em>\u0415\u0441\u043b\u0438 \u043d\u0435 \u0437\u043d\u0430\u0435\u0448\u044c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 dex \u0444\u0430\u0439\u043b \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0441\u044e\u0434\u0430, \u0435\u0441\u043b\u0438 \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u043a\u043e\u0440\u043e\u0442\u043a\u043e \u0442\u043e \u0432 \u043d\u0435\u0433\u043e \u0443\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f &#8212; <\/em><a href=\"https:\/\/source.android.com\/docs\/core\/runtime\/dex-format?hl=en\" rel=\"noopener noreferrer nofollow\"><strong><em>https:\/\/source.android.com\/docs\/core\/runtime\/dex-format?hl=en<\/em><\/strong><\/a><\/p>\n<pre><code class=\"cpp\"> while (i &lt; 100) {       std::string name = StringPrintf(\"classes%zu.dex\", i);       std::string fake_location = location + kMultiDexSeparator + name;       std::unique_ptr&lt;const DexFile> next_dex_file(Open(zip_archive, name.c_str(), fake_location,                                                         error_msg, &amp;error_code));       if (next_dex_file.get() == nullptr) {         if (error_code != ZipOpenErrorCode::kEntryNotFound) {           LOG(WARNING) &lt;&lt; error_msg;         }         break;       } else {         dex_files->push_back(next_dex_file.release());       }       i++;     }<\/code><\/pre>\n<p>\u0427\u0442\u043e \u0436\u0435 \u044f \u0442\u0430\u043c \u0443\u0432\u0438\u0434\u0435\u043b. \u0422\u0443\u0442 \u0434\u0430\u0436\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0437\u043d\u0430\u0442\u043e\u043a\u043e\u043c C \u0438\u043b\u0438 C++. <strong><em>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0432 100 dex \u0444\u0430\u0439\u043b\u043e\u0432<\/em><\/strong>. \u0415\u0441\u043b\u0438 \u0438\u0445 \u0431\u0443\u0434\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0442\u043e \u043e\u043d\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u0431\u0440\u043e\u0441\u044f\u0442\u0441\u044f \u0438 \u043c\u044b \u043a\u0430\u043a \u0440\u0430\u0437 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0442\u0443 \u0441\u0430\u043c\u0443\u044e NoClassDefFoundError, \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043a\u043b\u0430\u0441\u0441 \u0431\u044b\u043b \u0432 dex \u0444\u0430\u0439\u043b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0431\u0440\u043e\u0441\u0438\u043b\u0438. \u0418 \u0432 \u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u044f \u043f\u043e\u0434\u0443\u043c\u0430\u043b &#8212; &#171;\u041d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u0435\u0434\u044c \u0431\u044b\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0443 \u043d\u0430\u0441 \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0435 \u0431\u044b\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 100 dex \u0444\u0430\u0439\u043b\u043e\u0432, \u0431\u0440\u0435\u0434 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e.&#187; \u041d\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u043d\u0430 \u0440\u0430\u0437\u043e\u0447\u0430\u0440\u043e\u0432\u0430\u043d\u0438\u0439, \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u043b \u0422\u0430\u043d\u043e\u0441: <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/90b\/ee2\/b49\/90bee2b49c933c5d13d5b8858847af7b.png\" width=\"1246\" height=\"792\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/90b\/ee2\/b49\/90bee2b49c933c5d13d5b8858847af7b.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0415\u0432\u043a\u043b\u0438\u0434\u043e\u043c \u0438\u043b\u0438 \u041f\u0443\u0430\u043d\u043a\u0430\u0440\u0435, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e dex \u0444\u0430\u0439\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435. \u0414\u0430\u0436\u0435 \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u043d\u0430\u0448\u0430 \u0430\u043f\u043a\u0430 \u0442\u043e\u0447\u043d\u043e \u043f\u0435\u0440\u0435\u0432\u0430\u043b\u0438\u0432\u0430\u0435\u0442 \u0437\u0430 \u043b\u0438\u043c\u0438\u0442 \u0432 100 \u0444\u0430\u0439\u043b\u043e\u0432. \u041a\u0430\u043a \u0442\u044b \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0448\u044c \u0441 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u043c R8 dex \u0444\u0430\u0439\u043b\u043e\u0432 \u0443\u0436\u0435 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c 100.  \u041c\u043d\u0435 \u0441\u0442\u0430\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u0447\u0435\u043c\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0435 \u043a\u0440\u0430\u0448\u0438\u0442\u0441\u044f \u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 api \u0432\u044b\u0448\u0435 21. \u0418 \u044f \u0437\u0430\u0433\u043b\u044f\u043d\u0443\u043b \u0432 \u0442\u043e\u0442 \u0436\u0435 runtime\/dex_file.cc \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0436\u0435 \u0434\u043b\u044f 6 \u0430\u043d\u0434\u0440\u043e\u0438\u0434\u0430:<\/p>\n<pre><code class=\"cpp\">for (size_t i = 1; ; ++i) {       std::string name = GetMultiDexClassesDexName(i);       std::string fake_location = GetMultiDexLocation(i, location.c_str());       std::unique_ptr&lt;const DexFile> next_dex_file(Open(zip_archive, name.c_str(), fake_location,                                                         error_msg, &amp;error_code));       if (next_dex_file.get() == nullptr) {         if (error_code != ZipOpenErrorCode::kEntryNotFound) {           LOG(WARNING) &lt;&lt; error_msg;         }         break;       } else {         dex_files->push_back(std::move(next_dex_file));       }       if (i == kWarnOnManyDexFilesThreshold) {         LOG(WARNING) &lt;&lt; location &lt;&lt; \" has in excess of \" &lt;&lt; kWarnOnManyDexFilesThreshold                      &lt;&lt; \" dex files. Please consider coalescing and shrinking the number to \"                         \" avoid runtime overhead.\";       }       if (i == std::numeric_limits&lt;size_t>::max()) {         LOG(ERROR) &lt;&lt; \"Overflow in number of dex files!\";         break;       }     }<\/code><\/pre>\n<p>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0443\u0436\u0435 \u043d\u0435\u0442 \u0438 \u0431\u0443\u0434\u0443\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u044b \u0432\u0441\u0435 dex \u0444\u0430\u0439\u043b\u044b. \u041d\u043e \u0435\u0441\u0442\u044c \u0437\u0430\u0431\u0430\u0432\u043d\u044b\u0439 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439:<\/p>\n<pre><code class=\"cpp\">\/\/ Technically we do not have a limitation with respect to the number of dex files that can be in a \/\/ multidex APK. However, it's bad practice, as each dex file requires its own tables for symbols \/\/ (types, classes, methods, ...) and dex caches. So warn the user that we open a zip with what \/\/ seems an excessive number. static constexpr size_t kWarnOnManyDexFilesThreshold = 100;<\/code><\/pre>\n<p>\u0414\u043b\u044f 6 \u0430\u043d\u0434\u0440\u043e\u0438\u0434\u0430 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e dex \u0444\u0430\u0439\u043b\u043e\u0432 \u0432\u0441\u0435 \u0442\u0430\u043a\u0436\u0435 \u043f\u043b\u043e\u0445\u043e, \u043d\u043e \u043e\u043d \u0445\u043e\u0442\u044f \u0431\u044b \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0442\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a warning. \u041d\u0430 \u044d\u0442\u043e\u043c \u043c\u043e\u0435 \u0440\u0430\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0434\u043e\u0448\u043b\u043e \u043a \u0441\u0432\u043e\u0435\u043c\u0443 \u043b\u043e\u0433\u0438\u0447\u043d\u043e\u043c\u0443 \u043a\u043e\u043d\u0446\u0443, \u043f\u0440\u0438\u0447\u0438\u043d\u0443 \u043a\u0440\u0430\u0448\u0430 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c, \u043f\u0440\u0430\u0432\u0434\u0430 \u0441\u0435\u0434\u044b\u0445 \u0432\u043e\u043b\u043e\u0441 \u043d\u0430 \u043c\u043e\u0435\u0439 \u0433\u043e\u043b\u043e\u0432\u0435 \u043f\u0440\u0438\u0431\u0430\u0432\u0438\u043b\u043e\u0441\u044c. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/152\/dd3\/035\/152dd3035e2834bc66a1d1dccf275c5f.jpeg\" width=\"1200\" height=\"675\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/152\/dd3\/035\/152dd3035e2834bc66a1d1dccf275c5f.jpeg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<h2>P.S.<\/h2>\n<p>\u041c\u043e\u0436\u0435\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441, &#171;\u0430 \u043a\u0430\u043a \u0436\u0435 \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0441 \u043a\u0440\u0430\u0448\u0435\u043c ?&#187;. \u041e\u0431 \u044d\u0442\u043e\u043c \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435-\u0440\u0430\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0438.<br \/>\u041f\u0440\u0438\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u0437\u0430\u043b\u0435\u0437\u0430\u043b: <br \/><a href=\"https:\/\/android.googlesource.com\/platform\/art\/+\/android-6.0.0_r26\/runtime\/dex_file.cc\" rel=\"noopener noreferrer nofollow\">https:\/\/android.googlesource.com\/platform\/art\/+\/android-6.0.0_r26\/runtime\/dex_file.cc<\/a><br \/><a href=\"https:\/\/android.googlesource.com\/platform\/art\/+\/lollipop-release\/runtime\/dex_file.cc\" rel=\"noopener noreferrer nofollow\">https:\/\/android.googlesource.com\/platform\/art\/+\/lollipop-release\/runtime\/dex_file.cc<\/a><\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/706126\/\"> https:\/\/habr.com\/ru\/post\/706126\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h2>\u041f\u0440\u0438\u0432\u0435\u0442, \u043c\u043e\u0439 \u0434\u043e\u0440\u043e\u0433\u043e\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c, \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u043f\u043e\u0432\u0435\u0434\u0430\u044e \u0442\u0435\u0431\u0435 \u043e\u0447\u0435\u043d\u044c \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043a\u0440\u0430\u0448 \u043d\u0430 \u0430\u043d\u0434\u0440\u043e\u0438\u0434\u0435 \u0434\u043e\u0432\u0435\u043b \u043c\u0435\u043d\u044f \u0434\u043e \u043f\u0435\u0440\u0432\u044b\u0445 \u0441\u0435\u0434\u0438\u043d. \u0418 \u043a\u0430\u043a\u0438\u0435 \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0435\u0441\u0442\u044c \u0443 \u0430\u043d\u0434\u0440\u043e\u0438\u0434\u0430 \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 dex \u0444\u0430\u0439\u043b\u0430\u043c\u0438.<\/h2>\n<p>\u042f \u0434\u0435\u043b\u0430\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0410\u043b\u044c\u0444\u0430 \u041c\u043e\u0431\u0430\u0439\u043b \u0434\u043b\u044f \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043b\u0438\u0446. \u041e\u0434\u043d\u0430\u0436\u0434\u044b \u0441 \u0443\u0442\u0440\u0430 \u043f\u043e\u0440\u0430\u043d\u044c\u0448\u0435 \u043c\u043d\u0435 \u043f\u0440\u0438\u043b\u0435\u0442\u0435\u043b \u0442\u0438\u043a\u0435\u0442, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u044b\u043b\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 \u043b\u0430\u0433\u0430\u044e\u0449\u0438\u043c UI. \u042d\u0442\u043e\u0442 \u0431\u0430\u0433 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043b\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 21 api. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a\u0430\u043a \u0434\u0435\u043b\u0430\u043b\u0438 \u043d\u0430\u0448\u0438 \u043f\u0440\u0435\u0434\u043a\u0438 \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u044d\u0442\u043e\u0442 \u0431\u0430\u0433.  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u044e \u0431\u0438\u043b\u0434 \u0438 \u0441\u0440\u0430\u0437\u0443 \u0432\u0438\u0436\u0443 \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0435: <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p><strong>\u041d\u043e \u043f\u043e\u0433\u043e\u0434\u0438 \u043a\u0430&#8230;<\/strong><br \/>\u041a\u0430\u043a \u0442\u0435\u0441\u0442\u0435\u0440 \u0441\u043c\u043e\u0433 \u0434\u043e\u0439\u0442\u0438 \u0434\u043e \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u044d\u043a\u0440\u0430\u043d\u0430 \u0435\u0441\u043b\u0438 \u043d\u0430 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u0440\u0430\u0448\u0438\u0442\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u0438 \u0432\u0445\u043e\u0434\u0435 ?<\/p>\n<p>\u042f \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043b\u0441\u044f \u0432 \u043f\u0443\u0442\u0435\u0448\u0435\u0441\u0442\u0432\u0438\u0435 \u0434\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430, \u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443 \u043d\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u043b\u043e\u0441\u044c \u043a\u0430\u043a \u043d\u0443\u0436\u043d\u043e. \u0418 \u0442\u0443\u0442 \u044f \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b, \u0447\u0442\u043e \u0442\u0435\u0441\u0442\u0435\u0440\u044b \u0431\u0435\u0440\u0443\u0442 apk \u0441 binary, \u043a\u0443\u0434\u0430 \u043e\u043d\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u043d\u0430\u0448\u0438\u043c CI \u0438 \u0441\u0430\u043c\u044b\u0439 \u0432\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0442\u0430\u043c \u0443\u0436\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d R8, \u0430 \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0431\u043e\u0440\u043a\u0430\u0445 R8 \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f. <br \/>\u041d\u0443 \u0447\u0442\u043e \u0436, \u0432\u043e\u0442 \u043e\u043d\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u0435 \u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432 R8 \u0432\u0435\u0434\u044c \u0442\u0430\u043a ? <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p><em>\u041a\u0442\u043e \u0442\u0430\u043a\u043e\u0439 \u044d\u0442\u043e\u0442 R8 \u0435\u0441\u043b\u0438 \u0442\u044b \u043d\u0435 \u0437\u043d\u0430\u0435\u0448\u044c &#8212;<\/em> <a href=\"https:\/\/developer.android.com\/studio\/build\/shrink-code\" rel=\"noopener noreferrer nofollow\">https:\/\/developer.android.com\/studio\/build\/shrink-code<\/a><\/p>\n<p>\u041d\u043e \u043a\u0430\u043a \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c, \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u0432\u043e\u0432\u0441\u0435 \u043d\u0435 \u0432 R8, R8 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u044b\u043b \u043a\u043b\u044e\u0447\u043e\u043c \u043a \u0440\u0435\u0448\u0435\u043d\u0438\u044e \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u0433\u0430\u0434\u043a\u0438. \u0418 \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0441 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0435\u0439, \u043a\u043e\u0433\u0434\u0430 \u0438\u0437-\u0437\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0433\u043e R8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u0440\u0430\u0448\u0438\u0442\u0441\u044f. \u0423\u0441\u0443\u0433\u0443\u0431\u043b\u044f\u043b\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0435\u0449\u0435 \u0438 \u0442\u043e, \u0447\u0442\u043e \u043a\u0440\u0430\u0448 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 21 api, \u0432\u0435\u0440\u0441\u0438\u0438 \u0432\u044b\u0448\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0448\u0442\u0430\u0442\u043d\u043e. <\/p>\n<p><strong>\u0414\u0430\u0432\u0430\u0439 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c\u0441\u044f \u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u043a\u0443 \u0438 \u0442\u044b \u043f\u043e\u0434\u0443\u043c\u0430\u0435\u0448\u044c \u0432 \u0447\u0435\u043c \u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u0435\u043b\u043e ?<\/strong> <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p><strong>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043c ! <\/strong><\/p>\n<p>\u041d\u0430 \u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u044f \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0441\u044f \u0432 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u043d\u043e\u0439 \u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u0438\u0437\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043f\u043e\u0433\u043b\u0443\u0431\u0436\u0435 \u0438 \u0440\u0430\u0441\u0447\u0435\u0445\u043b\u0438\u043b \u0434\u0435\u0431\u0430\u0433\u0433\u0435\u0440: <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u0430\u0432\u0430\u0439 \u043f\u0440\u0438\u0441\u043c\u043e\u0442\u0440\u0438\u043c\u0441\u044f \u043a \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0443. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 TextViewModel(), \u0430 \u043e\u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a TextViewStyle.H1 \u0438 \u043d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0435, \u043c\u044b \u043b\u043e\u0432\u0438\u043c NoClassDefFoundError. \u0415\u0449\u0435 \u0440\u0430\u0437 \u043f\u0440\u043e\u0448\u0443 \u0442\u0435\u0431\u044f \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0442\u043e \u0447\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 21 api \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0441\u0431\u043e\u0440\u043a\u0435 \u0431\u0435\u0437 R8. <\/p>\n<p>\u0423 \u043c\u0435\u043d\u044f \u0432\u0441\u0435 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435 \u0431\u044b\u043b\u043e \u0438\u0434\u0435\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u0435\u0434\u043e\u0432\u0441\u043a\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0438 \u0443\u0434\u0430\u043b\u0438\u043b \u044d\u0442\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443: <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0442\u0430\u043a\u043e\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>&#171;\u041d\u0443 \u0445\u043e\u0442\u044f \u0431\u044b \u0434\u0440\u0443\u0433\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430, \u0443\u0436\u0435 \u043b\u0443\u0447\u0448\u0435, \u0447\u0435\u043c \u043d\u0438\u0447\u0435\u0433\u043e&#187; &#8212; \u043f\u043e\u0434\u0443\u043c\u0430\u043b \u044f. \u041d\u043e \u043d\u0435 \u0442\u0443\u0442 \u0442\u043e \u0431\u044b\u043b\u043e, \u0441\u0442\u043e\u0438\u043b\u043e \u043f\u043e\u0441\u043a\u0440\u043e\u043b\u0438\u0442\u044c \u0441\u0442\u0435\u043a\u0442\u0440\u0435\u0439\u0441 \u0438: <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 ClassNotFoundException \u043e\u0441\u0442\u0430\u043b\u0430\u0441\u044c. \u0418 \u043e\u043d\u0430 \u0438 \u043d\u0435 \u043c\u043e\u0433\u043b\u0430 \u0443\u0439\u0442\u0438 \u043e\u0442 \u0442\u0430\u043a\u043e\u0433\u043e, \u0437\u0430\u0433\u0432\u043e\u0437\u0434\u043a\u0430 \u043b\u0435\u0436\u0430\u043b\u0430 \u0433\u043b\u0443\u0431\u0436\u0435 \u0447\u0435\u043c \u044f \u0434\u0443\u043c\u0430\u043b. \u041d\u043e \u043d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u044f \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b \u043b\u043e\u0433 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u0435\u0435 \u0438 \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0433\u0434\u0435-\u0442\u043e \u0432 dex \u0444\u0430\u0439\u043b\u0430\u0445. \u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u0432\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442, \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0441\u043f\u043e\u043d\u0442\u0430\u043d\u043d\u043e, \u0432 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0432\u0435\u0440\u0441\u0438\u0439 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043f\u0440\u0438\u0447\u0435\u043c \u0441 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0435\u0435 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0443\u0436\u0435 \u043f\u0440\u043e\u0448\u043b\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u043b\u0438\u0437\u043e\u0432, <em>\u043d\u043e \u043e\u043d\u0430 \u043d\u0435 \u0431\u044b\u043b\u0430 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0430, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0431\u043e\u0440\u043a\u0430\u0445 \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u0434 5 \u0430\u043d\u0434\u0440\u043e\u0438\u0434.<\/em> \u041d\u0443 \u0447\u0442\u043e \u0434\u0440\u0443\u0436\u0438\u0449\u0435 \u043f\u043e\u0440\u0430 \u043f\u043e\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0434\u043d\u043e, <strong>\u0432 \u0441\u0432\u044f\u0442\u0443\u044e \u0441\u0432\u044f\u0442\u044b\u0445 &#8212; \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0430\u043d\u0434\u0440\u043e\u0438\u0434\u0430<\/strong>. \u041f\u0440\u0438\u0447\u0435\u043c \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0438\u043c\u0435\u043d\u043d\u043e 21 \u0432\u0435\u0440\u0441\u0438\u044f api \u0430\u043d\u0434\u0440\u043e\u0438\u0434\u0430. \u042f \u0437\u0430\u0433\u043b\u044f\u043d\u0443\u043b \u0432 \u0444\u0430\u0439\u043b\u0438\u043a \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c  runtime\/dex_file.cc, \u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u043c\u0435\u0442\u043e\u0434 <code>bool DexFile::OpenFromZip<\/code><\/p>\n<p><em>\u0415\u0441\u043b\u0438 \u043d\u0435 \u0437\u043d\u0430\u0435\u0448\u044c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 dex \u0444\u0430\u0439\u043b \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0441\u044e\u0434\u0430, \u0435\u0441\u043b\u0438 \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u043a\u043e\u0440\u043e\u0442\u043a\u043e \u0442\u043e \u0432 \u043d\u0435\u0433\u043e \u0443\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f &#8212; <\/em><a href=\"https:\/\/source.android.com\/docs\/core\/runtime\/dex-format?hl=en\" rel=\"noopener noreferrer nofollow\"><strong><em>https:\/\/source.android.com\/docs\/core\/runtime\/dex-format?hl=en<\/em><\/strong><\/a><\/p>\n<pre><code class=\"cpp\"> while (i &lt; 100) {       std::string name = StringPrintf(\"classes%zu.dex\", i);       std::string fake_location = location + kMultiDexSeparator + name;       std::unique_ptr&lt;const DexFile> next_dex_file(Open(zip_archive, name.c_str(), fake_location,                                                         error_msg, &amp;error_code));       if (next_dex_file.get() == nullptr) {         if (error_code != ZipOpenErrorCode::kEntryNotFound) {           LOG(WARNING) &lt;&lt; error_msg;         }         break;       } else {         dex_files->push_back(next_dex_file.release());       }       i++;     }<\/code><\/pre>\n<p>\u0427\u0442\u043e \u0436\u0435 \u044f \u0442\u0430\u043c \u0443\u0432\u0438\u0434\u0435\u043b. \u0422\u0443\u0442 \u0434\u0430\u0436\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0437\u043d\u0430\u0442\u043e\u043a\u043e\u043c C \u0438\u043b\u0438 C++. <strong><em>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0432 100 dex \u0444\u0430\u0439\u043b\u043e\u0432<\/em><\/strong>. \u0415\u0441\u043b\u0438 \u0438\u0445 \u0431\u0443\u0434\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0442\u043e \u043e\u043d\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u0431\u0440\u043e\u0441\u044f\u0442\u0441\u044f \u0438 \u043c\u044b \u043a\u0430\u043a \u0440\u0430\u0437 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0442\u0443 \u0441\u0430\u043c\u0443\u044e NoClassDefFoundError, \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043a\u043b\u0430\u0441\u0441 \u0431\u044b\u043b \u0432 dex \u0444\u0430\u0439\u043b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0431\u0440\u043e\u0441\u0438\u043b\u0438. \u0418 \u0432 \u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u044f \u043f\u043e\u0434\u0443\u043c\u0430\u043b &#8212; &#171;\u041d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u0435\u0434\u044c \u0431\u044b\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0443 \u043d\u0430\u0441 \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0435 \u0431\u044b\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 100 dex \u0444\u0430\u0439\u043b\u043e\u0432, \u0431\u0440\u0435\u0434 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e.&#187; \u041d\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u043d\u0430 \u0440\u0430\u0437\u043e\u0447\u0430\u0440\u043e\u0432\u0430\u043d\u0438\u0439, \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u043b \u0422\u0430\u043d\u043e\u0441: <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0415\u0432\u043a\u043b\u0438\u0434\u043e\u043c \u0438\u043b\u0438 \u041f\u0443\u0430\u043d\u043a\u0430\u0440\u0435, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e dex \u0444\u0430\u0439\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435. \u0414\u0430\u0436\u0435 \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u043d\u0430\u0448\u0430 \u0430\u043f\u043a\u0430 \u0442\u043e\u0447\u043d\u043e \u043f\u0435\u0440\u0435\u0432\u0430\u043b\u0438\u0432\u0430\u0435\u0442 \u0437\u0430 \u043b\u0438\u043c\u0438\u0442 \u0432 100 \u0444\u0430\u0439\u043b\u043e\u0432. \u041a\u0430\u043a \u0442\u044b \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0448\u044c \u0441 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u043c R8 dex \u0444\u0430\u0439\u043b\u043e\u0432 \u0443\u0436\u0435 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c 100.  \u041c\u043d\u0435 \u0441\u0442\u0430\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u0447\u0435\u043c\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0435 \u043a\u0440\u0430\u0448\u0438\u0442\u0441\u044f \u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 api \u0432\u044b\u0448\u0435 21. \u0418 \u044f \u0437\u0430\u0433\u043b\u044f\u043d\u0443\u043b \u0432 \u0442\u043e\u0442 \u0436\u0435 runtime\/dex_file.cc \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0436\u0435 \u0434\u043b\u044f 6 \u0430\u043d\u0434\u0440\u043e\u0438\u0434\u0430:<\/p>\n<pre><code class=\"cpp\">for (size_t i = 1; ; ++i) {       std::string name = GetMultiDexClassesDexName(i);       std::string fake_location = GetMultiDexLocation(i, location.c_str());       std::unique_ptr&lt;const DexFile> next_dex_file(Open(zip_archive, name.c_str(), fake_location,                                                         error_msg, &amp;error_code));       if (next_dex_file.get() == nullptr) {         if (error_code != ZipOpenErrorCode::kEntryNotFound) {           LOG(WARNING) &lt;&lt; error_msg;         }         break;       } else {         dex_files->push_back(std::move(next_dex_file));       }       if (i == kWarnOnManyDexFilesThreshold) {         LOG(WARNING) &lt;&lt; location &lt;&lt; \" has in excess of \" &lt;&lt; kWarnOnManyDexFilesThreshold                      &lt;&lt; \" dex files. Please consider coalescing and shrinking the number to \"                         \" avoid runtime overhead.\";       }       if (i == std::numeric_limits&lt;size_t>::max()) {         LOG(ERROR) &lt;&lt; \"Overflow in number of dex files!\";         break;       }     }<\/code><\/pre>\n<p>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0443\u0436\u0435 \u043d\u0435\u0442 \u0438 \u0431\u0443\u0434\u0443\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u044b \u0432\u0441\u0435 dex \u0444\u0430\u0439\u043b\u044b. \u041d\u043e \u0435\u0441\u0442\u044c \u0437\u0430\u0431\u0430\u0432\u043d\u044b\u0439 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439:<\/p>\n<pre><code class=\"cpp\">\/\/ Technically we do not have a limitation with respect to the number of dex files that can be in a \/\/ multidex APK. However, it's bad practice, as each dex file requires its own tables for symbols \/\/ (types, classes, methods, ...) and dex caches. So warn the user that we open a zip with what \/\/ seems an excessive number. static constexpr size_t kWarnOnManyDexFilesThreshold = 100;<\/code><\/pre>\n<p>\u0414\u043b\u044f 6 \u0430\u043d\u0434\u0440\u043e\u0438\u0434\u0430 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e dex \u0444\u0430\u0439\u043b\u043e\u0432 \u0432\u0441\u0435 \u0442\u0430\u043a\u0436\u0435 \u043f\u043b\u043e\u0445\u043e, \u043d\u043e \u043e\u043d \u0445\u043e\u0442\u044f \u0431\u044b \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0442\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a warning. \u041d\u0430 \u044d\u0442\u043e\u043c \u043c\u043e\u0435 \u0440\u0430\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0434\u043e\u0448\u043b\u043e \u043a \u0441\u0432\u043e\u0435\u043c\u0443 \u043b\u043e\u0433\u0438\u0447\u043d\u043e\u043c\u0443 \u043a\u043e\u043d\u0446\u0443, \u043f\u0440\u0438\u0447\u0438\u043d\u0443 \u043a\u0440\u0430\u0448\u0430 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c, \u043f\u0440\u0430\u0432\u0434\u0430 \u0441\u0435\u0434\u044b\u0445 \u0432\u043e\u043b\u043e\u0441 \u043d\u0430 \u043c\u043e\u0435\u0439 \u0433\u043e\u043b\u043e\u0432\u0435 \u043f\u0440\u0438\u0431\u0430\u0432\u0438\u043b\u043e\u0441\u044c. <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h2>P.S.<\/h2>\n<p>\u041c\u043e\u0436\u0435\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441, &#171;\u0430 \u043a\u0430\u043a \u0436\u0435 \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0441 \u043a\u0440\u0430\u0448\u0435\u043c ?&#187;. \u041e\u0431 \u044d\u0442\u043e\u043c \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435-\u0440\u0430\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0438.<br \/>\u041f\u0440\u0438\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u0437\u0430\u043b\u0435\u0437\u0430\u043b: <br \/><a href=\"https:\/\/android.googlesource.com\/platform\/art\/+\/android-6.0.0_r26\/runtime\/dex_file.cc\" rel=\"noopener noreferrer nofollow\">https:\/\/android.googlesource.com\/platform\/art\/+\/android-6.0.0_r26\/runtime\/dex_file.cc<\/a><br \/><a href=\"https:\/\/android.googlesource.com\/platform\/art\/+\/lollipop-release\/runtime\/dex_file.cc\" rel=\"noopener noreferrer nofollow\">https:\/\/android.googlesource.com\/platform\/art\/+\/lollipop-release\/runtime\/dex_file.cc<\/a><\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/706126\/\"> https:\/\/habr.com\/ru\/post\/706126\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-342823","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/342823","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=342823"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/342823\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=342823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=342823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=342823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}