Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio 3.0 you can not upload a test only apk

Tags:

android

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?

like image 944
lacas Avatar asked Nov 03 '17 10:11

lacas


People also ask

Can you import an apk into Android Studio?

Or, if you already have a project open, click File > Profile or Debug APK from the menu bar. In the next dialog window, select the APK you want to import into Android Studio and click OK. Android Studio then displays the unpacked APK files, similar to figure 1.

Can I still upload apk to Google Play?

Upload App Bundles or APK To Google Play This is how you do it: Navigate to the 'Release Management' and then 'App Release' tab in the menu. After this, you will be asked to choose any one type of release from four options- internal test, close test, production release, and an open test.

How do I import an apk file?

You don't usually import apk file to run in Android Studio. If you have the apk file and want it to run in an emulator, you have to drag and drop the file in the emulator, it will show up in the download folder of the emulator, and from there you can install it. Save this answer. Show activity on this post.


2 Answers

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.

like image 106
Yev Kanivets Avatar answered Sep 23 '22 04:09

Yev Kanivets


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

like image 30
Vitalii Obideiko Avatar answered Sep 24 '22 04:09

Vitalii Obideiko