Where is android studio building my .apk file?

前端 未结 13 1141
离开以前
离开以前 2020-12-23 02:49

I\'ve been rebuilding my project from the ground up, so there\'s been a lot of problems with it. At the moment, everything\'s working great, except that when I try to run th

相关标签:
13条回答
  • 2020-12-23 03:21

    You should Build your app instead of debugging process. Just follow this:

    Build -> Build Bundles/APK(s) -> Build APK(s)
    

    0 讨论(0)
  • 2020-12-23 03:22

    Go to AndroidStudio projects File

    1. Select the project name,
    2. Select app
    3. Select build
    4. Select Outputs
    5. Select Apk

    You will find APK files of app here, if you have ran the app in AVD or even hardware device

    0 讨论(0)
  • 2020-12-23 03:22

    in android 3.1.0 Above use below path to find signed version of APK

    home/AndroidStudioProjects/<projedct name>/app/app-release.apk
    

    and in windows

    AndroidStudioProjects\{project name}\app\release\app-release.apk
    
    0 讨论(0)
  • 2020-12-23 03:23

    In my case to get my debug build - I have to turn off Instant Run option :

    File → Settings → Build, Execution, Deployment → Instant Run and uncheck Enable Instant Run.

    Then after run project - I found my build into Application\app\build\outputs\appDebug\apk directory

    0 讨论(0)
  • 2020-12-23 03:26

    When you have android studio make your signed apk file it uses

        <property name="ExportedApkPath" value="$PROJECT_DIR$/PROJNAME/APPNAME.apk" />
    

    inside workspace.xml to find out where to place it. However, if you use ./gradlew assembleRelease it places it inside PROJNAME/build/apk. I have the same problem. For some reason my android studio will not show me anything inside the apk subdirectory so the apk is for all intents and purposes missing. But if you search with finder it's most definitely there.

    0 讨论(0)
  • 2020-12-23 03:27

    Mine application's apk was at this location

    C:\Users\haseeb_mir\AndroidStudioProjects\MyTestApp\app\build\outputs\apk\debug

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