8

I just updated my old projects to as3.0 and builded and signed my app. After when I want to upload to google play:

"you can not upload a test only apk"

Any help?

lacas
  • 13,928
  • 30
  • 109
  • 183
  • 3
    https://commonsware.com/blog/2017/10/31/android-studio-3p0-flag-test-only.html – CommonsWare Nov 03 '17 at 10:39
  • Possible duplicate of [GooglePlay error: cannot upload a test-only APK](https://stackoverflow.com/questions/43690118/googleplay-error-cannot-upload-a-test-only-apk) – Vito Valov Nov 29 '17 at 16:22

3 Answers3

10

This is a new feature from Android Studio 3.0. When you execute any gradle command by pressing 'Run' button in Android Studio, it adds testOnly=true flag to your manifest.

To eliminate this issue just execute assembleRelease from Gradle pane on the right side of Android Studio.

Yev Kanivets
  • 1,780
  • 3
  • 22
  • 38
2

Evgenii Kanivets is right, but although you can use Build -> Generate Signed APK...

Vitalii Obideiko
  • 1,726
  • 1
  • 13
  • 16
0

If you have set up the build file to automatically sign your release, then you can also use

Build > Build APK

to configure the auto sign, the link is below. (https://developer.android.com/studio/publish/app-signing.html#secure-shared-keystore)

Angel Koh
  • 12,479
  • 7
  • 64
  • 91