如何改变在Android的工作室Android版本和code版本号? [英] How to change android version and code version number in Android Studio?

查看:154
本文介绍了如何改变在Android的工作室Android版本和code版本号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何改变Android版本和code版本号机器人工作室?我想改变谷歌播放apk文件(应用程序),我需要改变Android版本和code版本号。

How to change android version and code version number Android Studio? I want to change apk file(app) on Google Play and i need to change android version and code version number. I tried with this in AndroidManifest.xml file in Android Studio:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bestsoftcorporation.circle.app"
android:versionCode="101"
android:versionName="2.0">

但它不会工作。当我试图在谷歌发布它发挥它显示我必须改变Android版本名称和code。请帮助。

But it wont work. When i tried to publish it on Google Play it display that i must to change android version name and code. Pls help.

推荐答案

转到在 build.gradle 并设置版本code和名称在 defaultConfig 元素

Go in the build.gradle and set the version code and name inside the defaultConfig element

defaultConfig {
    minSdkVersion 9
    targetSdkVersion 19
    versionCode 1
    versionName "1.0"
}

这篇关于如何改变在Android的工作室Android版本和code版本号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆