{"id":63984,"date":"2024-08-22T15:55:37","date_gmt":"2024-08-22T07:55:37","guid":{"rendered":"https:\/\/www.yimenapp.com\/kb-yimen\/?p=63984"},"modified":"2024-08-22T15:55:37","modified_gmt":"2024-08-22T07:55:37","slug":"pycharm%e6%89%93%e5%8c%85apk%e6%93%8d%e4%bd%9c%e6%b5%81%e7%a8%8b%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/www.yimenapp.com\/kb-yimen\/63984\/","title":{"rendered":"pycharm\u6253\u5305apk\u64cd\u4f5c\u6d41\u7a0b\u4ecb\u7ecd"},"content":{"rendered":"<p>PyCharm\u662f\u4e00\u6b3e\u6d41\u884c\u7684Python IDE\uff0c\u63d0\u4f9b\u4e86\u8bb8\u591a\u6709\u7528\u7684\u529f\u80fd\uff0c\u5982<span class=\"wpcom_tag_link\"><a href=\"https:\/\/www.yimenapp.com\/kb-yimen\/tag\/%e4%bb%a3%e7%a0%81\/\" title=\"\u4ee3\u7801\" target=\"_blank\">\u4ee3\u7801<\/a><\/span>\u81ea\u52a8\u5b8c\u6210\u3001\u8c03\u8bd5\u3001\u7248\u672c\u63a7\u5236\u7b49\u3002\u5728\u8fd9\u4e9b\u529f\u80fd\u4e2d\uff0cPyCharm\u8fd8\u652f\u6301\u5c06Python\u4ee3\u7801\u6253\u5305\u4e3aAndroid<span class=\"wpcom_tag_link\"><a href=\"https:\/\/www.yimenapp.com\/kb-yimen\/tag\/%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f\/\" title=\"\u5e94\u7528\u7a0b\u5e8f\" target=\"_blank\">\u5e94\u7528\u7a0b\u5e8f<\/a><\/span>\uff08APK\uff09\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u5728PyCharm\u4e2d\u6253\u5305APK\uff0c\u4ee5\u53ca\u5176\u539f\u7406\u3002<\/p>\n<p>PyCharm\u6253\u5305APK\u7684\u539f\u7406<\/p>\n<p>\u5728PyCharm\u4e2d\u6253\u5305APK\u7684\u539f\u7406\u662f\u4f7f\u7528\u4e86\u4e00\u4e2a\u540d\u4e3aKivy\u7684Python<span class=\"wpcom_tag_link\"><a href=\"https:\/\/www.yimenapp.com\/kb-yimen\/tag\/%e6%a1%86%e6%9e%b6\/\" title=\"\u6846\u67b6\" target=\"_blank\">\u6846\u67b6<\/a><\/span>\u3002Kivy\u6846\u67b6\u662f\u4e00\u4e2a\u7528\u4e8e\u521b\u5efa\u8de8\u5e73\u53f0\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u7684\u5f00\u6e90\u6846\u67b6\uff0c\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u4f7f\u7528Python\u7f16\u7a0b\u8bed\u8a00\u521b\u5efa\u5e94\u7528\u7a0b\u5e8f\u3002Kivy\u6846\u67b6\u4f7f\u5f97\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u4f7f\u7528\u76f8\u540c\u7684\u4ee3\u7801\u5728\u591a\u4e2a\u5e73\u53f0\u4e0a\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\uff0c\u5305\u62ecAndroid\u3001iOS\u3001Windows\u3001MacOS\u7b49\u3002<\/p>\n<p>Kivy\u6846\u67b6\u5141\u8bb8\u5c06Python\u4ee3\u7801\u8f6c\u6362\u4e3aAndroid\u5e94\u7528\u7a0b\u5e8f\uff0c\u4f7f\u7528\u4e86\u4e00\u4e2a\u540d\u4e3aBuildozer\u7684\u5de5\u5177\u3002Buildozer\u662f\u4e00\u4e2a\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u5c06Python\u4ee3\u7801\u548c\u76f8\u5173\u4f9d\u8d56\u9879\u6253\u5305\u6210Android APK\u6587\u4ef6\u3002<\/p>\n<p>\u5728PyCharm\u4e2d\u6253\u5305APK\u7684\u6b65\u9aa4<\/p>\n<p>\u4e0b\u9762\u662f\u5728PyCharm\u4e2d\u6253\u5305APK\u7684\u6b65\u9aa4\uff1a<\/p>\n<p>1. \u5b89\u88c5Kivy\u548cBuildozer<\/p>\n<p>\u5728PyCharm\u4e2d\u6253\u5305APK\u4e4b\u524d\uff0c\u9700\u8981\u5148\u5b89\u88c5Kivy\u548cBuildozer\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5728\u7ec8\u7aef\u4e2d\u5b89\u88c5\u5b83\u4eec\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>pip install kivy<\/p>\n<p>pip install buildozer<\/p>\n<p>&#8220;`<\/p>\n<p>2. \u521b\u5efaKivy\u5e94\u7528\u7a0b\u5e8f<\/p>\n<p>\u5728PyCharm\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Kivy\u5e94\u7528\u7a0b\u5e8f\u3002\u5728\u8fd9\u4e2a\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u60a8\u53ef\u4ee5\u7f16\u5199Python\u4ee3\u7801\uff0c\u521b\u5efa\u7528\u6237\u754c\u9762\u3001\u5904\u7406\u7528\u6237\u8f93\u5165\u7b49\u3002\u5728\u8fd9\u4e2a\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u60a8\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u540d\u4e3amain.py\u7684<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/kb.cdn.yimenapp.com\/yimen\/2024\/08\/20240822155539101.jpg\" \/><\/figure><\/p>\n<p>Python\u6587\u4ef6\uff0c\u5b83\u5c06\u5305\u542b\u5e94\u7528\u7a0b\u5e8f\u7684\u4e3b\u8981\u903b\u8f91\u3002<\/p>\n<p>3. \u914d\u7f6eBuildozer<\/p>\n<p>\u5728PyCharm\u4e2d\u914d\u7f6eBuildozer\uff0c\u4ee5\u4fbf\u53ef\u4ee5\u5c06Python\u4ee3\u7801\u8f6c\u6362\u4e3aAndroid APK\u6587\u4ef6\u3002\u914d\u7f6e\u6587\u4ef6\u4f4d\u4e8e\u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u7684buildozer.spec\u6587\u4ef6\u4e2d\u3002\u6253\u5f00\u8be5\u6587\u4ef6\uff0c\u5e76\u6309\u7167\u60a8\u7684\u9700\u6c42\u8fdb\u884c\u914d\u7f6e\u3002\u4f8b\u5982\uff0c\u60a8\u9700\u8981\u6307\u5b9a\u5e94\u7528\u7a0b\u5e8f\u540d\u79f0\u3001\u7248\u672c\u53f7\u3001\u5305\u540d\u3001\u5e94\u7528\u7a0b\u5e8f\u56fe\u6807\u3001\u4f9d\u8d56\u9879\u7b49\u3002<\/p>\n<p>4. \u6253\u5305APK<\/p>\n<p>\u5728\u7ec8\u7aef\u4e2d\uff0c\u4f7f<a href=\"https:\/\/www.yimenapp.net\/dabao-2511.html\">\u6587\u4ef6\u6253\u5305apk<\/a>\u7528\u4ee5\u4e0b<a href=\"https:\/\/www.yimenapp.net\/dabao-2259.html\">\u5728\u7ebf\u57df\u540d\u6253\u5305apk<\/a>\u547d\u4ee4\u6253\u5305APK\u6587\u4ef6\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>buildozer android debug deploy run<\/p>\n<p>&#8220;`<\/p>\n<p>\u8fd9\u4e2a\u547d\u4ee4\u5c06\u4f7f\u7528Buildozer\u5de5\u5177\u6253\u5305APK\u6587\u4ef6\uff0c\u5e76\u5c06\u5176\u90e8\u7f72\u5230\u8fde\u63a5\u7684Android\u8bbe\u5907\u4e0a\u3002\u5982\u679c\u60a8\u6ca1\u6709\u8fde\u63a5Android\u8bbe\u5907\uff0c\u5219\u53ef\u4ee5\u901a\u8fc7\u6a21\u62df\u5668\u8fdb\u884c\u6d4b\u8bd5\u3002<\/p>\n<p>\u603b\u7ed3<\/p>\n<p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u4ecb\u7ecd\u4e86\u5728PyCharm\u4e2d\u6253\u5305APK\u7684\u6b65\u9aa4\u4ee5\u53ca\u5176\u539f\u7406\u3002\u901a\u8fc7\u4f7f\u7528Kivy\u6846\u67b6\u548cBuildozer\u5de5\u5177\uff0c\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u4f7f\u7528Python\u7f16\u7a0b\u8bed\u8a00\u521b\u5efa\u8de8\u5e73\u53f0\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u3002\u5728PyCharm\u4e2d\u6253\u5305APK\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u6309\u7167\u4ee5\u4e0a\u6b65\u9aa4\u8fdb\u884c\u64cd\u4f5c\u5373\u53ef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PyCharm\u662f\u4e00\u6b3e\u6d41\u884c\u7684Python IDE\uff0c\u63d0\u4f9b\u4e86\u8bb8\u591a\u6709\u7528\u7684\u529f\u80fd\uff0c\u5982\u4ee3\u7801\u81ea\u52a8\u5b8c\u6210\u3001\u8c03\u8bd5\u3001\u7248\u672c\u63a7\u5236\u7b49\u3002\u5728\u8fd9\u4e9b\u529f\u80fd\u4e2d\uff0cPyCharm\u8fd8\u652f\u6301\u5c06Python\u4ee3\u7801\u6253\u5305\u4e3aAndroid\u5e94\u7528\u7a0b\u5e8f\uff08APK\uff09\u3002\u5728<\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[10807,1870,9079,2445,3242],"special":[],"attr":[],"class_list":["post-63984","post","type-post","status-publish","format-standard","hentry","category-www","tag-iosapp","tag-1870","tag-app","tag-2445","tag-3242","entry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts\/63984","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/comments?post=63984"}],"version-history":[{"count":1,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts\/63984\/revisions"}],"predecessor-version":[{"id":64016,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts\/63984\/revisions\/64016"}],"wp:attachment":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/media?parent=63984"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/categories?post=63984"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/tags?post=63984"},{"taxonomy":"special","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/special?post=63984"},{"taxonomy":"attr","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/attr?post=63984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}