Android Studio does not install latest application on device

后端 未结 8 1983
后悔当初
后悔当初 2020-12-13 09:12

I\'m following some tutorials about building apps in Android Studio, but for some reason it\'s not launching/installing the latest version of my app when I click \'run\'. I

相关标签:
8条回答
  • 2020-12-13 09:31

    option in Run > Edit Configurations >Android Application > app >Miscellaneous . Then uncheck "Skip installation if APK has not changed". THEN --> option in Build > clean project and rebuild project and reinstall APK in your device.

    THIS WORKS FINE FOR ME, HOPE THIS HELP OTHER ALSO

    0 讨论(0)
  • 2020-12-13 09:32

    Android Studio thinks that there are no changes and doesn't install the new APK. A workaround is to disable the "Skip installation if APK has not changed" option in Run > Edit Configurations >Android Application > app >Miscellaneous . Then uncheck "Skip installation if APK has not changed".

    Another problem like this is instant Run you can manage it by :- Just go to "File -> Settings -> Build, Execution, Deployement -> Instant Run" and just disable it. With this Android Studio builds from scratch each time but it's better than not building it right.

    0 讨论(0)
  • 2020-12-13 09:33

    Another reason why the app might fail to install/start is if you've set up a "work profile".

    The app might still be installed in your "work" profile and thus won't be re-installed nor uninstalled when starting through Android Studio. The "main"-profile portion of the app is "disabled" though and thus the activity can't be started.

    Solution: manually uninstall the work-app, then redeploy from Android Studio.

    0 讨论(0)
  • 2020-12-13 09:33

    Run on a Phone

    Set up your device as follows:

    Connect your device to your development machine with a USB cable. If you're developing on Windows, you might need to install the appropriate USB driver for your device. For help installing drivers, see the OEM USB Drivers document. Enable USB debugging on your device by going to Settings > Developer options. Note: On Android 4.2 and newer, Developer options is hidden by default. To make it available, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options.

    Run the app from Android Studio as follows:

    In Android Studio, click the app module in the Project window and then select Run > Run (or click Run in the toolbar). In the Select Deployment Target window, select your device, and click OK.

    Please refer the link

    0 讨论(0)
  • 2020-12-13 09:35

    I have tried all of above solution but didn't work for me. I solved by Opening a new project or some other existing project (being in current project) in a new window and then I closed the previous one.. I opened again the previous one and clicked on run and it worked for me like a charm..:)

    0 讨论(0)
  • 2020-12-13 09:40

    No apk changes detected. Skipping file upload, force stopping package instead.

    Android Studio thinks that there are no changes and doesn't install the new APK. A workaround is to disable the "Skip installation if APK has not changed" option in Run > Edit Configurations.


    I'm using Android Studio 1.4
    Source: https://code.google.com/p/android/issues/detail?id=160901

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