Unable to Upload Updated APK to Google Play Store

后端 未结 7 2071
孤独总比滥情好
孤独总比滥情好 2021-01-11 10:25

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. Wheneve

相关标签:
7条回答
  • 2021-01-11 10:28

    Google Play will not accept a debug version of your .apk file. You can only upload an .apk compiled as release version. Additionally it must be signed with your Android Developer key, which happens in the same step, at least if you're using Eclipse.

    Make sure you distribute an .apk file which is your Signed Release version, as described here:

    http://developer.android.com/tools/publishing/app-signing.html#releasecompile

    0 讨论(0)
  • 2021-01-11 10:29

    Assuming you're using 'Build > Generate Signed APK' in Android Studio and assuming you're using Gradle, you will now have to configure Gradle to sign your apk. The reason being that button in Android Studio doesn't run 'gradle assembleRelease' which would make your apk non-debuggable.

    Follow the instructions that pop up when you click on Generate Signed APK.

    For Gradle-based projects, the signing configuration should be specified in the Gradle build scripts. Configure your signing configurations as described in the user guide: http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Signing-Configurations

    Then, run "gradle assembleRelease", and you will find your APK in the build/apk/ directory.

    Hopefully Google either fixes the Generate Signed APK button in Android Studio or they revert the Play Store back to allow debuggable APKs again until they fix Gradle/Android Studio.

    0 讨论(0)
  • 2021-01-11 10:40

    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"
        }
    }
    
    0 讨论(0)
  • 2021-01-11 10:49

    You just have to set Build variants if you are on android studio.

    Flow => Go to Build Variants -> From Build variant -> Select release mode

    Here you just have to set the mode as release not debug.

    NOTE : This is for security of your apk on google play store.

    FOR NON-ANDROID-STUDIO users :

    Here we just have to set the android:debuggable="false" in application tag of your menifest file and you are done.

    And you are out of your issue.

    Thanks and feel free to comment ...

    0 讨论(0)
  • 2021-01-11 10:50

    I think, that you have to set it as "false" in order to disable the debug.

    0 讨论(0)
  • 2021-01-11 10:51

    In build.gradle(Module:app) make the debuggable as false

        buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        debug {
            debuggable false
        }
    }
    
    0 讨论(0)
提交回复
热议问题