{"id":978,"date":"2023-03-12T00:12:11","date_gmt":"2023-03-11T16:12:11","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=978"},"modified":"2023-04-29T13:25:37","modified_gmt":"2023-04-29T05:25:37","slug":"centos-command-line-install-android-sdk-and-android-ndk","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/12\/centos-command-line-install-android-sdk-and-android-ndk\/","title":{"rendered":"CentOS\u547d\u4ee4\u884c\u5b89\u88c5 Android SDK \u548c Android NDK"},"content":{"rendered":"<h2>Android SDK<\/h2>\n<p>Android SDK \u5b98\u65b9\u4e3b\u9875\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/developer.android.com\/studio\/index.html\">https:\/\/developer.android.com\/studio\/index.html<\/a><\/p>\n<p><!-- more --><\/p>\n<pre><code class=\"language-shell\"># wget https:\/\/dl.google.com\/android\/repository\/sdk-tools-linux-3859397.zip\n# unzip -q -d .\/ sdk-tools-linux-3859397.zip\n# cd tools\n# bin\/sdkmanager --help\n# bin\/sdkmanager --list\n# bin\/sdkmanager --sdk_root=\/data\/Android\/Android-Sdk &quot;build-tools;27.0.3&quot;\n# bin\/sdkmanager --sdk_root=\/data\/Android\/Android-Sdk &quot;platforms;android-26&quot; &quot;platforms;android-27&quot;\n# bin\/sdkmanager --sdk_root=\/data\/Android\/Android-Sdk &quot;extras;android;m2repository&quot;\n# bin\/sdkmanager --update --sdk_root=\/data\/Android\/Android-Sdk<\/code><\/pre>\n<h2>Android NDK<\/h2>\n<p>Android NDK \u5b98\u65b9\u4e3b\u9875\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/developer.android.com\/ndk\/downloads\/index.html\">https:\/\/developer.android.com\/ndk\/downloads\/index.html<\/a><\/p>\n<pre><code class=\"language-shell\"># wget https:\/\/dl.google.com\/android\/repository\/android-ndk-r16b-linux-x86_64.zip\n# mkdir Android-Ndk\n# unzip -q -d .\/Android-Ndk\/ android-ndk-r16b-linux-x86_64.zip\n# \/data\/Android\/Android-Ndk\/android-ndk-r16b\/ndk-build -version\nGNU Make 3.82\nBuilt for x86_64-redhat-linux-gnu\nCopyright (C) 2010  Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later &lt;http:\/\/gnu.org\/licenses\/gpl.html&gt;\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Android SDK Android SDK \u5b98\u65b9\u4e3b\u9875\uff1ahttps:\/\/developer.android. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,61],"tags":[269,268],"class_list":["post-978","post","type-post","status-publish","format-standard","hentry","category-android-ndk","category-android-basic","tag-ndk","tag-sdk"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=978"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/978\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}