久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<legend id='TlTvK'><style id='TlTvK'><dir id='TlTvK'><q id='TlTvK'></q></dir></style></legend><tfoot id='TlTvK'></tfoot>

<small id='TlTvK'></small><noframes id='TlTvK'>

    1. <i id='TlTvK'><tr id='TlTvK'><dt id='TlTvK'><q id='TlTvK'><span id='TlTvK'><b id='TlTvK'><form id='TlTvK'><ins id='TlTvK'></ins><ul id='TlTvK'></ul><sub id='TlTvK'></sub></form><legend id='TlTvK'></legend><bdo id='TlTvK'><pre id='TlTvK'><center id='TlTvK'></center></pre></bdo></b><th id='TlTvK'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='TlTvK'><tfoot id='TlTvK'></tfoot><dl id='TlTvK'><fieldset id='TlTvK'></fieldset></dl></div>
        <bdo id='TlTvK'></bdo><ul id='TlTvK'></ul>

    2. 如何獲取 Android 應用程序的構建/版本號?

      How can you get the build/version number of your Android application?(如何獲取 Android 應用程序的構建/版本號?)
        <tbody id='zkhsj'></tbody>
      1. <i id='zkhsj'><tr id='zkhsj'><dt id='zkhsj'><q id='zkhsj'><span id='zkhsj'><b id='zkhsj'><form id='zkhsj'><ins id='zkhsj'></ins><ul id='zkhsj'></ul><sub id='zkhsj'></sub></form><legend id='zkhsj'></legend><bdo id='zkhsj'><pre id='zkhsj'><center id='zkhsj'></center></pre></bdo></b><th id='zkhsj'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='zkhsj'><tfoot id='zkhsj'></tfoot><dl id='zkhsj'><fieldset id='zkhsj'></fieldset></dl></div>

          <small id='zkhsj'></small><noframes id='zkhsj'>

            • <bdo id='zkhsj'></bdo><ul id='zkhsj'></ul>
              • <legend id='zkhsj'><style id='zkhsj'><dir id='zkhsj'><q id='zkhsj'></q></dir></style></legend>

                <tfoot id='zkhsj'></tfoot>
              • 本文介紹了如何獲取 Android 應用程序的構建/版本號?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我需要弄清楚如何為我的 Android 應用程序獲取或制作內部版本號.我需要在 UI 中顯示內部版本號.

                I need to figure out how to get or make a build number for my Android application. I need the build number to display in the UI.

                我必須對 AndroidManifest.xml 做些什么嗎?

                Do I have to do something with AndroidManifest.xml?

                推薦答案

                如果你使用 Gradle 插件/Android Studio,從版本 0.7.0 開始,版本代碼和版本名稱在 BuildConfig 中靜態可用.確保您導入應用的包,而不是另一個 BuildConfig:

                If you're using the Gradle plugin/Android Studio, as of version 0.7.0, version code and version name are available statically in BuildConfig. Make sure you import your app's package, and not another BuildConfig:

                import com.yourpackage.BuildConfig;
                ...
                int versionCode = BuildConfig.VERSION_CODE;
                String versionName = BuildConfig.VERSION_NAME;
                

                不需要上下文對象!

                還要確保在 build.gradle 文件而不是 AndroidManifest.xml 中指定它們.

                Also make sure to specify them in your build.gradle file instead of the AndroidManifest.xml.

                defaultConfig {
                    versionCode 1
                    versionName "1.0"
                }
                

                這篇關于如何獲取 Android 應用程序的構建/版本號?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                Get user#39;s current location using GPS(使用 GPS 獲取用戶的當前位置)
                IllegalArgumentException thrown by requestLocationUpdate()(requestLocationUpdate() 拋出的 IllegalArgumentException)
                How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?)
                How to detect Location Provider ? GPS or Network Provider(如何檢測位置提供者?GPS 或網絡提供商)
                Get current location during app launch(在應用啟動期間獲取當前位置)
                locationManager.getLastKnownLocation() return null(locationManager.getLastKnownLocation() 返回 null)

                  <legend id='GYzZF'><style id='GYzZF'><dir id='GYzZF'><q id='GYzZF'></q></dir></style></legend>
                    • <bdo id='GYzZF'></bdo><ul id='GYzZF'></ul>

                      <small id='GYzZF'></small><noframes id='GYzZF'>

                      <tfoot id='GYzZF'></tfoot>
                      <i id='GYzZF'><tr id='GYzZF'><dt id='GYzZF'><q id='GYzZF'><span id='GYzZF'><b id='GYzZF'><form id='GYzZF'><ins id='GYzZF'></ins><ul id='GYzZF'></ul><sub id='GYzZF'></sub></form><legend id='GYzZF'></legend><bdo id='GYzZF'><pre id='GYzZF'><center id='GYzZF'></center></pre></bdo></b><th id='GYzZF'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='GYzZF'><tfoot id='GYzZF'></tfoot><dl id='GYzZF'><fieldset id='GYzZF'></fieldset></dl></div>
                        <tbody id='GYzZF'></tbody>

                          主站蜘蛛池模板: 欧美日韩一二区 | 久草在线免费资源 | 91精品国产91久久久久久不卞 | 毛片免费观看 | 一区二区三区国产 | 一区二区精品 | 很黄很污的网站 | 一区二区视屏 | 久久久99精品免费观看 | 久草视频在线看 | 日韩精品一区二区三区中文在线 | 国产精品视频在线播放 | 中文字幕在线三区 | 久久综合狠狠综合久久 | 久久99精品国产99久久6男男 | 精品久久精品 | 99久久精品国产麻豆演员表 | 欧美国产日韩一区二区三区 | 日本男人天堂 | 成人欧美一区二区三区黑人孕妇 | 久久精品成人热国产成 | 一级毛片大全免费播放 | 亚洲网站观看 | 免费av在线网站 | 欧美久久一级特黄毛片 | 中文字幕 国产精品 | 久久网站免费视频 | 人人九九精 | 亚洲午夜一区二区 | 欧美日韩一区在线播放 | 日日爱av | 成人av一区二区三区 | 国产精品999| 色狠狠一区 | 国产精品成人国产乱 | 久久久免费| 欧美在线视频免费 | 黄色网址av | 日本精品一区二区三区在线观看 | 在线精品一区二区三区 | 成人免费看黄 |