Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to Upload Updated APK to Google Play Store

The same issue was posted here but the answer given didn't work for me. I've uploaded to the store before and now I can't update my app to include some bug fixes. Whenever I try to upload the APK I get this error

Upload failed

You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play.

I've tried adding Android:debuggable="false" to my manifest but I'm still getting the same message.

I'm currently using Android Studio to generate my signed APK.

Edit Here's my AndroidManifest.xml

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.aventuracctv.aventurafibercalculator"
        android:versionCode="3"
        android:versionName="1.2"
        android:debuggable="false">

        <uses-sdk
            android:minSdkVersion="7"
            android:targetSdkVersion="18" />

        <application
            android:allowBackup="true"
            android:icon="@drawable/app_icon"
            android:label="Fiber Calculator"
            android:theme="@style/AppTheme">

            <activity
                android:name="com.aventuracctv.aventurafibercalculator.MainActivity"
                android:label="@string/app_name" >

                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />

                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
        </application>
    </manifest>
like image 781
patrickSmith Avatar asked Nov 18 '13 15:11

patrickSmith


People also ask

Can I still upload APK to Google Play store?

Since August 2021 You cannot upload . apk files to the play store you will need to upload an . aab file For Expo you can generate the file as follows: In expo app run eas build --platform android.

Why can't I update my apps in the Play Store?

If the phone doesn't have an ample amount of free storage, you won't be able to download new apps or update existing apps on Google Play Store. To check storage, open Settings > Storage. Here, you'll see the detailed storage distribution, including the amount of free and occupied storage.


1 Answers

It seems you now have to explicitly set android:debuggable=false. (At least with the Android Studio 0.3.6.)

Debuggable is a property of the application tag. (Not the manifest tag.)

<application
            android:debuggable="false"

... more attributes

If you've added this attribute properly and Google Play still rejects your APK, try modifying build.gradle to set your own key for debug

signingConfigs {
    debug {
        storeFile file("my-keystore-file.jks")
        storePassword "my-password"
        keyAlias "my-alias"
        keyPassword "my-password"
    }
}
like image 111
SharkAlley Avatar answered Oct 13 '22 15:10

SharkAlley