1、Android Stutio - Build - Generate Signed Bundle / APK...
2. Select APK - Next
3. Select the jks file. If you haven’t created it before, you can create new... to create a new one. If you have one, you can directly choose existing...
New jks:
4. Select release-Finish and a release folder will be generated under the app, which contains app-release.apk
I copied the project package from others, and encountered the following error:
Here is my android studio version:
The Internet says that the configuration is as follows, but the problem is not solved
Final solution:
File - settings Gradle JDk was changed to 11. I used 1.8 before, and it was packaged successfully. I don’t know why