{"id":655,"date":"2018-08-30T09:01:40","date_gmt":"2018-08-30T01:01:40","guid":{"rendered":"https:\/\/www.dd-home.top:1443\/?p=655"},"modified":"2018-08-30T09:01:40","modified_gmt":"2018-08-30T01:01:40","slug":"android-debug%e7%ad%be%e5%90%8d%e5%92%8crelease%e7%ad%be%e5%90%8d","status":"publish","type":"post","link":"https:\/\/www.dd-home.top\/?p=655","title":{"rendered":"Android debug\u7b7e\u540d\u548crelease\u7b7e\u540d"},"content":{"rendered":"<p><!--more--><\/p>\n<p>1.\u5728APPmodule\u4e2d\u7684build.gradle\u4e2d\u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801<\/p>\n<pre class=\"lang:java decode:true \" title=\"signingConfigs\"> signingConfigs {\n        release {\n            keyAlias RELEASE_KEY_ALIAS\n            keyPassword RELEASE_KEY_PASSWORD\n            storeFile file(RELEASE_STORE_FILE)\n            storePassword RELEASE_STORE_PASSWORD\n        }\n        debug{\n            keyAlias RELEASE_KEY_ALIAS\n            keyPassword RELEASE_KEY_PASSWORD\n            storeFile file(RELEASE_STORE_FILE)\n            storePassword RELEASE_STORE_PASSWORD\n        }\n    }<\/pre>\n<pre class=\"lang:java decode:true \" title=\"buildTypes\">buildTypes {\n        release {\n            minifyEnabled false\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\n            signingConfig signingConfigs.release\n        }\n    }<\/pre>\n<pre class=\"lang:java decode:true \" title=\"android.applicationVariants.all\"> android.applicationVariants.all { variant -&gt;\n        variant.outputs.all {\n            outputFileName = \"app_${variant.buildType.name}_V${variant.versionName}.apk\"\n        }\n    }<\/pre>\n<p>2.\u5728\u9879\u76ee\u76ee\u5f55\u4e2d\u7684gradle.properties\u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801<\/p>\n<pre class=\"lang:java decode:true \">RELEASE_KEY_PASSWORD=cccccc\nRELEASE_KEY_ALIAS=bbbbbb\nRELEASE_STORE_PASSWORD=aaaaa\nRELEASE_STORE_FILE=D:\/aaaaaaa\/bbbbbb\/cccccc\/dddddd.jks<\/pre>\n<p>3.\u9879\u76ee\u7684gradle\u5de5\u5177\u4e2d\u7f16\u8bd1<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-655","post","type-post","status-publish","format-standard","hentry","category-android"],"_links":{"self":[{"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/posts\/655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=655"}],"version-history":[{"count":0,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/posts\/655\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dd-home.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}