Installation failed with message Error: android.os.ParcelableException: java.io.IOException: Requested internal only, but not enough space

后端 未结 7 2113
余生分开走
余生分开走 2020-12-11 03:11

I was getting the message

> Installation failed with message Failed to establish session.

so following some responses to the problem I

相关标签:
7条回答
  • 2020-12-11 03:16

    If you are using phone this error comes due to less storage. Make some space and try again it should work.

    0 讨论(0)
  • 2020-12-11 03:18

    I uninstalled all the apps I ran and got installed on the virtual device and the error went away.

    0 讨论(0)
  • 2020-12-11 03:19

    In Android Studio, open the AVD Manager and edit the problematic emulator. Inside the edit screen, you might need to click on 'Show Advanced Settings'. Scroll down and increase internal memory and SD card memory. After I did this I could install my app again.

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

    The problem is with your storage space on your device which it is running. Try Installing Clearing the space or install it on an emulator.

    0 讨论(0)
  • 2020-12-11 03:30

    Put this line inside app/build.gradle:

     defaultConfig {
        ... 
        android:installLocation="auto"
        ....
     }
    
    0 讨论(0)
  • 2020-12-11 03:31

    that file-system has no space:

    java.io.IOException: Requested internal only, but not enough space.
    

    the issue is:

    android:installLocation="internalOnly"
    

    either remove it, or replace it with:

    android:installLocation="preferExternal"
    

    or make some space on the device / emulator by uninstalled or deleting something -

    or simply assign some more megabytes to the virtual SD card.

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