Android studio 3.0 you can not upload a test only

2020-03-01 18:33发布

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?

标签: android
3条回答
▲ chillily
2楼-- · 2020-03-01 19:20

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

查看更多
\"骚年 ilove
3楼-- · 2020-03-01 19:23

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.

查看更多
老娘就宠你
4楼-- · 2020-03-01 19:27

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)

查看更多
登录 后发表回答