Build unsigned APK file with Android Studio

前端 未结 19 2940
抹茶落季
抹茶落季 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:36

    Yes, it is possible to create an unsigned .apk with Android Studio!

    Highlight the Project in your package explorer or project column, and then File - Project Structure - Artifacts - + - Android Application - From module 'your app' and then you can change the location and some other options. I enable build on make, just for ease.

    0 讨论(0)
  • 2020-11-28 00:36

    You can click the dropdown near the run button on toolbar,

    1. Select "Edit Configurations"
    2. Click the "+"
    3. Select "Gradle"
    4. Choose your module as Gradle project
    5. In Tasks: enter assemble

    Now press ok,

    all you need to do is now select your configuration from the dropdown and press run button. It will take some time. Your unsigned apk is now located in

    Project\app\build\outputs\apk
    
    0 讨论(0)
  • 2020-11-28 00:38

    Following work for me:

    Keep following setting blank if you have made in build.gradle.

    signingConfigs {
            release {
                storePassword ""
                keyAlias ""
                keyPassword ""
            }
        }
    

    and choose Gradle Task from your Editor window. It will show list of all flavor if you have created.

    enter image description here

    0 讨论(0)
  • 2020-11-28 00:48

    Just go to Your Application\app\build\outputs\apk

    and copy both to phone and install app-debug.apk

    0 讨论(0)
  • 2020-11-28 00:50

    Android studio also create the apk file on every time compile the program, just go to your workspace folder and find app->build->outputs-> then you can see the apk file.

    0 讨论(0)
  • 2020-11-28 00:50

    Steps for creating unsigned APK

    Steps for creating unsigned APK
    
    •	Click the dropdown menu in the toolbar at the top
    •	Select "Edit Configurations"
    •	Click the "+"
    •	Select "Gradle"
    •	Choose your module as a Gradle project
    •	In Tasks: enter assemble
    •	Press Run
    •	Your unsigned APK is now located in - ProjectName\app\build\outputs\apk
    
    Note : Technically, what you want is an APK signed with a debug key. An APK that is actually unsigned will be refused by the device. So, Unsigned APK will give error if you install in device.

    Note : Technically, what you want is an APK signed with a debug key. An APK that is actually unsigned will be refused by the device. So, Unsigned APK will give error if you install in device.

    0 讨论(0)
提交回复
热议问题