How to install / run a signed app in order to see the error log?

2

I'm developing an app and testo direct on the mobile (LGE API Level 16).

When testing, perform normal. But when I generated a signed apk, and I try to install that apk on the same phone it just says: Application not installed.

This happened after I added in the gradle at module level the line:

compile 'com.google.firebase:firebase-core:9.6.1'

And in the project-level gradle:

classpath 'com.google.gms:google-services:3.0.0'

And I added the project to firebase

I'm kind of afraid that this app will not run on mobile phones when you're on Google Play.

The minSdkVersion is 9.

The question is:

How to install / run a signed app in order to see the error log, to find out why it was not installed.

    
asked by anonymous 18.06.2017 / 22:16

2 answers

1

Install via AndroidStudio.

From the Android Studio menu choose build - > Edit Build Types ... .
In the window that appears, select the Signing tab and click the + sign. Fill in the fields on the right.

SelecttheBuildTypestabandchooserelease.

IntheComboBoxSigningConfigchooseconfig(orthenamegiveninthepreviousstep)

Closethewindow.OntheleftedgeofAndroidStudioclickBuildVariants.IntheBuildVariantcolumn,changefromdebugtorelaese.

Run the app as it normally does (icon with green arrow).

    
18.06.2017 / 23:42
1

Good. Thanks to the comment from the friend ramaral I solved the problem.

I installed the app via Android's Sdk adb. How?

Following this response here :

Running the following command on the terminal:

adb install -r xyz.apk 

Then you gave the following message:

Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]

As if I had generated the signed apk?

What did I do then?

I removed the .apk file and the previously generated .jks file, because I was just reusing and re-creating those files.

I ran the installation again via adb again and finally successfully installed the application.

That's it.

    
18.06.2017 / 23:20