Build>Select Build Variant を選ぶとbuild Variantsウィンドウが出るのでdebugからreleaseに変える
あとは以下を参考 http://www.what-a-day.net/entry/2016/12/11/001948