Android - Generate Apk

1

How do I generate apk in Android Studio?

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

How can I proceed correctly?

    
asked by anonymous 11.01.2017 / 14:21

1 answer

1

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

This link can help Prepare for Launch

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

    
11.01.2017 / 15:03