Updating the version of the Android application – how?

Question:

I uploaded an application to PlayMarket, finalized it, I want to upload UPDATES. I created a new APK file of the program where in the manifest I indicated:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.evgeniy.dailyspending"
android:versionCode="2"
android:versionName="1.2">

<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

When downloading the APK file, it gives the error "APK file with version code 1 already exists. Please use another code." How to update?

Answer:

The version must be changed NOT IN THE MANIFESTO but in the file build.gradle !!!!!!

Scroll to Top