Build unsigned APK file with Android Studio

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

    I solve it!

    First off all, you should add these:

    defaultConfig { 
     multiDexEnabled true
    }
    
    dependencies {
     implementation 'com.android.support:multidex:1.0.3'
    }
    

    After, you should click Build in top bar of Android Studio:

    Build > Build Bundle(s) / APK(s) > Build APK(s)

    Finally, you have an app-debug.apk file in:

    app > build > outputs > apk > debug > app-debug.apk

    Note: apk, debug, app-debug.apk files created automatically in outputs file by Android Studio.

提交回复
热议问题