{"id":350,"date":"2023-02-25T07:06:08","date_gmt":"2023-02-24T23:06:08","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=350"},"modified":"2023-04-30T14:46:35","modified_gmt":"2023-04-30T06:46:35","slug":"simple-configuration-for-adding-third-party-so-libraries-to-android","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/25\/simple-configuration-for-adding-third-party-so-libraries-to-android\/","title":{"rendered":"Android\u6dfb\u52a0\u7b2c\u4e09\u65b9so\u5e93\u7684\u7b80\u5355\u914d\u7f6e"},"content":{"rendered":"<p>Android\u6dfb\u52a0\u7b2c\u4e09\u65b9so\u5e93\u7684\u7b80\u5355\u914d\u7f6e\uff1a<\/p>\n<p><!-- more --><\/p>\n<pre><code>android {\n    compileSdkVersion 26\n    defaultConfig {\n        ...\n        ndk {\n            \/\/\u9009\u62e9\u8981\u6dfb\u52a0\u7684\u5bf9\u5e94cpu\u7c7b\u578b\u7684.so\u5e93\u3002\n            abiFilters &#039;armeabi&#039;, &#039;armeabi-v7a&#039;, &#039;armeabi-v8a&#039;\n            \/\/\u8fd8\u53ef\u4ee5\u6dfb\u52a0 &#039;x86&#039;, &#039;x86_64&#039;, &#039;mips&#039;, &#039;mips64&#039;\n        }\n    }\n    sourceSets {\n        main {\n            jniLibs.srcDirs = [&#039;libs&#039;]\n        }\n    }\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Android\u6dfb\u52a0\u7b2c\u4e09\u65b9so\u5e93\u7684\u7b80\u5355\u914d\u7f6e\uff1a android { compileSdkVersion 26 de [&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-350","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\/350","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=350"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/350\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}