Android - Generate Apk

Asked

Viewed 1,104 times

1

How do I generate apk in Android Studio?

  • 1.0 - I went to Build -> Build APK.
  • 1.1 - When finishing I put it on the smartphone and gave the following error: There is a package analysis problem.
  • 2.0 - I went to Generate Signed APK and created the keys and generated the APK file.
  • 2.1 - When finishing I put on the smartphone and gave the same error as the previous.

How can I proceed properly?

  • The APK is being generated correctly. So that’s not the problem. Usually this package analysis problem is a project error. Or in JAVA, XML, Manifest, etc. Try creating a template project, those ready-made templates that come with Android Studio, generate APK, and you’ll see that you’re doing the right APK generating procedure. Then post here the project files.

1 answer

1


Assuming you want to generate APK for production (for distribution), you need to generate the keys in Build>Generate Signed APK instead...

This link can help Prepare for the Launch

If it is not yet the final version, do not use the Build APK option, but use the Run menu to run the APK on the emulator or on a device connected to the USB. Once everything is ready and you generate the security keys, it should work.

Browser other questions tagged

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