When I try to generate a signed APK, I found this issue :
10:58 Generate Signed APK: Errors while building APK. You can find the errors in the \'Messa
Check Settings > Build, Execution, Deployment > Compiler to see if Command-line Options contains --offline See this answer.
--offline