{"id":424,"date":"2023-02-25T12:07:06","date_gmt":"2023-02-25T04:07:06","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=424"},"modified":"2023-04-29T21:20:10","modified_gmt":"2023-04-29T13:20:10","slug":"android-ndk-environment-variables","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/25\/android-ndk-environment-variables\/","title":{"rendered":"Android NDK\u73af\u5883\u53d8\u91cf"},"content":{"rendered":"<h3>\u4e34\u65f6\u914d\u7f6e<\/h3>\n<pre><code class=\"language-bash\">$ export PATH=$PATH:\/data\/ndk\/android-ndk-r16b<\/code><\/pre>\n<p><!-- more --><\/p>\n<h3>\u5f53\u524d\u7528\u6237\u914d\u7f6e<\/h3>\n<pre><code class=\"language-bash\">$ vim ~\/.bashrc\n\nexport ANDROID_NDK_HOME=\/data\/ndk\/android-ndk-r16b\nexport PATH=$PATH:$ANDROID_NDK_HOME\n\n$ source ~\/.bashrc  \/\/\u66f4\u65b0\u73af\u5883\u53d8\u91cf<\/code><\/pre>\n<h3>\u5168\u5c40\u914d\u7f6e<\/h3>\n<pre><code class=\"language-bash\">$ vim \/etc\/profile  \/\/\u5168\u5c40\u73af\u5883\u53d8\u91cf\n\nexport ANDROID_NDK_HOME=\/data\/ndk\/android-ndk-r16b\nexport CLASSPATH=.:ANDROID_NDK_HOME\n\n$ source \/etc\/profile  \/\/\u914d\u7f6e\u751f\u6548<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4e34\u65f6\u914d\u7f6e $ export PATH=$PATH:\/data\/ndk\/android-ndk-r16b \u5f53\u524d\u7528 [&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],"tags":[],"class_list":["post-424","post","type-post","status-publish","format-standard","hentry","category-android-ndk"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/424","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=424"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/424\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}