Build unsigned APK file with Android Studio

前端 未结 19 3057
抹茶落季
抹茶落季 2020-11-28 00:15

I\'m developing an android app with the Android Developer Tool. Now I tried the new Android Studio, everything works fine if connect my smartphone with the pc and directly r

19条回答
  •  醉梦人生
    2020-11-28 00:59

    According to Build Unsigned APK with Gradle you can simply build your application with gradle. In order to do that:

    1. click on the drop down menu on the toolbar at the top (usually with android icon and name of your application)
    2. select Edit configurations
    3. click plus sign at top left corner or press alt+insert
    4. select Gradle
    5. choose your module as Gradle project
    6. in Tasks: enter assemble
    7. press OK
    8. press play

    After that you should find your unsigned 'apk' in directory ProjectName\app\build\outputs\apk

提交回复
热议问题