<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                Android Studio在打包的時候會根據選擇的Build Variant是Debug和Release默認生成`app-debug.apk`或者`app-release.apk`。 那么如何打包時候生成自定義文件名呢? 只要在moudle的build.gradle中進行如下設置即可。 ## 在根節點添加 ~~~ // 當前beta版本號 ext.build_number = "beta1"; // 顯示的時間格式,形如20180702 def releaseTime() { return new Date().format("yyyyMMdd", TimeZone.getDefault()); } ~~~ ## 在android節點中添加 ~~~ android { // 一定要寫在android節點中 applicationVariants.all { variant -> variant.outputs.each { output -> def outputFile = output.outputFile if (outputFile != null && outputFile.name.endsWith('.apk')) { // 顯示app名稱+當前版本號 def fileName = "Your App Name-V${variant.versionName}" // 如果有渠道,顯示渠道名"" if (variant.flavorName!=""){ fileName = fileName + "-${variant.flavorName}" } // 加入打包時間 fileName = fileName + "-${releaseTime()}" // 如果是debug版本,加入beta版本號 if ('debug'.equals(variant.buildType.name)) { fileName = fileName + "-${build_number}.apk" } else { // 如果是release版本,直接顯示 fileName = fileName + "-release.apk" } output.outputFile = new File(outputFile.parent, fileName) } } } } ~~~ 這樣設置之后,打出的包的文件名就形如 //沒有渠道 Your App Name-V1.0.0-20171110-beta1.apk Your App Name-V1.0.0-20171110-release.apk // 有渠道 Your App Name-V1.2.1-20171110-渠道名稱-beta2.apk Your App Name-V1.2.1-20171110-渠道名稱-release.apk
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看