1

Iam using Android Studio, and generated APK with build generate signed bundle / APK. In some Android phone it's works, but in other phone it could be cannot installed or install with can't execute properly some function.

My APK :

https://github.com/budim12/TPGAPK/blob/master/tpg-v0.3.2.2.1.apk

How i can check it / trace it / solve the problem, in phone with error function when i run this app. I test with usb mode, but nothing error pop up, but when i use APK, it got error function.

Add Note for broken app but success install :

  • Could show login menu, could check if its empty input box or not
  • But fail when get data json from API web services

Build Gradle link (remove space) :

https://pastebin .com/UkTSLcp5 

Signed APK :

enter image description here

Thanks.

Budi Mulyo
  • 384
  • 5
  • 22

2 Answers2

1

Comment this line for future use

proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'

in release mode , you enabled proguard .it should be enabled in production .keep in mind, if you are in test mode it's better to disable or remove it but in production mode you should configure it .

A Farmanbar
  • 4,381
  • 5
  • 24
  • 42
  • You should told to turn off proguard only for testing. If build is succeed with proguard turned off, then re-enabled it and go on how to configuring the proguard properly. – nyconing Nov 08 '19 at 03:58
  • 1
    @nyconing yup definitely right .as because he told me "cz iam new in android or java" i didn't tried to confuse him. sure you are right. – A Farmanbar Nov 08 '19 at 04:00
0

Sory, for some apps that can't install is cz unmarshalling i see in debug usb mode, more spesific in mode No debuggable processess, so i check all output, and found that word.

Then found this link..

Cannot update the app after updating SDK (app not installed)

So, this is my mistake, i need to check in V1 (Jar Signature) and V2 (Full APK Signature) and it works.

But, it solve only this partial case, for other android case, which is could install but got error function still unsolved..

Budi Mulyo
  • 384
  • 5
  • 22