Build unsigned APK file with Android Studio

前端 未结 19 2941
抹茶落季
抹茶落季 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 01:03

    --- Create new config in signingConfigs

    unsigned {
            //do not sign
        }
    

    --- Create build type in buildTypes

    unsigned {
            versionNameSuffix '-unsigned'
        }
    

    --- Go to build variants and chose unsigned standard. Build project.

    --- Go to "outputs/apk" and find "XXX-unsigned.apk". To check if it is unsigned try to install it to device - you'll fail.

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