2016-05-11 7 views
1

こんにちは、私は私のアプリに行った最初のアップデートです...私は読んでいましたが、私はmanifest.xmlのversionCodeとversionNameof私のアプリを変更する必要があることに気づきました。ビルド - をクリックしてください>デベロッパーコンソールで、その後APKを署名生成私のアプリとAPKの左側のメニューをクリックしてを選択し、新しいAPKをアップロードして、私の新しい生成されたAPKを選択するが、私は同じエラーを取得しておいてください。Problem私のapkの更新とアップロード

Upload error You must use another version code for your APK because you already have a file with the version code 1.

BUTなぜこのエラーが発生しているのか分かりませんが、これは自分のmanifest.xmlです:

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="ve.net.gorydev.bachaqueofamilia" 
    android:versionCode="2" 
    android:versionName="1.1"> 

    <application 
     android:allowBackup="true" 
     android:icon="@mipmap/ic_launcher" 
     android:label="@string/app_name" 
     android:supportsRtl="true" 
     android:theme="@style/AppTheme"> 
     <activity android:name=".MainActivity"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 

       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 
    </application> 

</manifest> 

wh私は変更する必要がありますか?これが私の最初のアップデートであることを忘れないでください。

答えて

1

versionCodeとversionNameもapp/build.gradleで定義されています。それらを定義しても問題はありません。

android { 
    defaultConfig{ 
      versionCode 2 
      versionName "1.1" 
    } 
} 
+0

ありがとう+ Gerardo Teruelは問題を解決しました。 –

+0

@CarlosDelgadoこれを正解とタグ付けします。 –

関連する問題