How to install/run a signed app to view the error log?

Asked

Viewed 700 times

2

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

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

This happened after I added in Gradle the module-to-line level:

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

And in Gradle at project level:

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

And added the project to the firebase

I’m kind of afraid this app won’t run on mobile phones when you’re on Google Play.

The minSdkVersion is 9.

The question is:

How to install/run a signed app to view the error log, to know why it was not installed.

  • You are installing the app "signed" via usb or via Google Play?

  • i pass the apk to the mobile memory to try to install

  • Install via Androidstudio, so you can see some log.

  • how does via Android Studio?

  • Gave it here: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]

  • Good. The question you already solved. So you can add the answer so I can mark as solved. Now I’m going to solve this other message rsrs

  • I was able to solve that message too

  • Since I’ve managed to solve give yourself the answer.

  • But it was thanks to your answer..

Show 4 more comments

2 answers

1

Good. Thanks to friend’s comment ramaral I was able to solve the problem.

I installed the app via adb from Android Sdk. How?

Following that answer here:

Running the following command on the terminal:

adb install -r xyz.apk 

Then gave the following message:

Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]

As if I had generated the signed apk?

What I did then?

I removed the file . apk and the file . jks generated earlier because I was just reusing and recreating those files.

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

That’s it.

1


Install via Androidstudio.

In the menu of Android Studio choose build -> Edit Build Types....
In the window shown select tab Signing and click on the sign +.
Fill in the fields on the right side.

inserir a descrição da imagem aqui

Select the tab Build Types and choice release.

No Combobox Signing Config choosing config(or the name given in the previous step)

inserir a descrição da imagem aqui

Close the window.
On the left edge of Android Studio click on Build Variants.
In the column Build Variant altere of debug for relapse.

inserir a descrição da imagem aqui

Run the app as you normally do(icon with green arrow).

  • Ah ta! Beauty. Thank you very much!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.