Problem with APK Android Studio

0

Recently I started to venture into the field of Android applications, specifically with the Android Studio.

I did some simple applications but I run into a problem:

When exporting my code to an APK, I use the "Build APK" function, which is built by the installer.

The problem lies in the fact that some people who happened to this application get the error "You can not install the application".

I have a Sony Z5 phone (with Android 7.0) and a Samsung J7 (Android 7.0) and I downloaded it on both and it worked perfectly, but I also tried it on a Huawei P8 lite (Android 4.1) and a Motorola Z motorola ( Android 8.0) and I was throwing the installation error.

Is there a particular cause, either cell phones or my code that can be made to work?

Thanks

    
asked by Felipe Otero 07.09.2018 в 06:32
source

1 answer

0

The function "Build APK" usually causes this problem, the correct thing if you are going to distribute your App is to sign the APK using the "Generate Signed Apk" function. Here you can find info about the signature of Apps: link

Now as an alternative to not having to sign the App you should know that the problem with the "Build APK" is caused by the Android Run Instant Run so you can disable it in File> Settings and once disabled try again with the "Build Apk", but as I said before if you are already distributing your App the best thing is to sign it.

Here how to disable the Instant Run

    
answered by 07.09.2018 в 15:52