Problem with APK

Asked

Viewed 49 times

0

I’m having a problem with the APK file generated by android studio, when I install the app via AVD Manager the App works normally, but if I take the debug apk and install on the same device, when trying to open the App it automatically closes. Someone’s been through it?

  • 1

    opens the logcat in Android Studio with the cell phone plugged in and sees which error appeared

  • whether and apk debug Voce manages to catch the error in android studio

  • Gave an error, android.view.Inflateexception: Binary XML file line #8: Binary XML file line #8: Error inflating class androidx.constraintlayout.widget.ConstraintLayout. I decided to recreate the Layout. Thank you very much!

1 answer

1


In Android Studio has a function to generate the apk file to be an installer and has another function to compile and run, are two separate routines but the two generate an apk, and the build generates an incomplete apk.

Go to Build Builds APK, this routine will generate the installer. Run, Make, Debug routines generate incomplete apk, a version to run directly on the emulator or USB cable.

  • 1

    Hi I had already tested this way I ended up following the guidance of Paulo and Neuber, gave the error: android.view.Inflateexception: Binary XML file line #8: Binary XML file line #8: Error inflating class androidx.constraintlayout.widget.ConstraintLayout. I decided to redo the Layout

Browser other questions tagged

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