장치 메모리에 충분한 여유 공간이 있어도 "사용 가능한 스토리지 부족"
내 앱의 총 공간은 10MB이며 설치 후 20MB 미만이 소요됩니다. 에서 갤럭시 노트의 나는 내 응용 프로그램을 업데이트하는 동안 장치 메모리의 여유 공간 (내부)의 214메가바이트이있는 곳, 그것은, "사용 가능한 저장 공간이 부족"말하는. 새로운 앱을 다운로드하려고 시도하는 경우에도 발생합니다.
나는 해결책을 오랫동안 찾았고이 문제의 원인에 대한 완벽한 이유를 찾았지만 찾을 수 없습니다. 이 문제를 어떻게 해결합니까?
이것은 동일한 문제가있는 다른 장치의 'adb shell df'의 결과입니다. 여유 공간이 35MB입니다.
/dev: 115788K total, 0K used, 115788K available (block size 4096)
/mnt/asec: 115788K total, 0K used, 115788K available (block size 4096)
/system: 179840K total, 168376K used, 11464K available (block size 4096)
/data: 201856K total, 168524K used, 33332K available (block size 4096)
/cache: 108544K total, 1284K used, 107260K available (block size 4096)
/cdrom: 8960K total, 8632K used, 328K available (block size 4096)
/tmp: 2048K total, 28K used, 2020K available (block size 4096)
/pds: 1536K total, 1320K used, 216K available (block size 4096)
/mnt/sdcard: 1928992K total, 1014496K used, 914496K available (block size 32768)
/mnt/secure/asec: Permission denied
여기에 Samsung Galaxy S II 및 Note 1 에서 작동하는 매우 간단한 솔루션이 있습니다 . 다른 모델에 대해서는 전혀 모른다.
- 전화 앱을 열고 키패드로 전환하십시오.
- 다이얼
*#9900#
- 나타나는 화면에서 "덤프 상태 / 로그 캣 삭제"버튼을 클릭하십시오.
이 방법으로 약 1GB의 시스템 공간을 복원했습니다.
처음에 나는 Berislav Lopac의 답변을Connection problem or invalid MMI code.
시도했지만 전화를 걸었을 때 나는 얻었다 *#9900#
. 전화에서 CyanogenMod 를 사용하고 있었고 사용자 지정 ROM 이있는 전화는 스톡 다이얼러를 사용하지 않으므로 SysDump 기능이 부족하다고 생각합니다.
기본적으로 Delete dumpstate/logcat
SysDump에서의 로그 파일을 지 웁니다 /data/log
. 그러나 SysDump없이 수동으로 수행 할 수도 있습니다. (이것은 귀하의 휴대 전화가 루팅되었다고 가정하며, 귀하의 휴대 전화가 CyanogenMod 또는 기타 비 재고 ROM을 실행하는 경우에 해당됩니다.)
- 수퍼 유저 및 터미널 에뮬레이터 앱이 설치되어 있는지 확인하십시오. (대부분의 사용자 정의 ROM이 제공됩니다.)
- 터미널 에뮬레이터 실행
- 를 입력하고
su
Return 키를 누르십시오. - 슈퍼 유저 프롬프트가 나타납니다. 액세스 권한을 부여하십시오. "허용"을 클릭하기 전에 3 초 정도 기다려야합니다.
- 을 입력 한
cd /data/log
다음 return 키를 눌러 현재 디렉토리를 변경하십시오 . - 확인은 당신이에
data/log
입력하여 디렉토리pwd
반환 다음. 현재 작업중인 디렉토리를 인쇄해야합니다/data/log
.. 다음 단계는 현재 작업중인 디렉토리에있는 모든 파일을 제거하므로 올바른 디렉토리에 있는지 확인하는 것이 매우 중요합니다. - 을 입력 한
rm *
다음 return 키를 눌러 디렉토리의 모든 파일을 제거하십시오 . - 터미널 창 또는 앱
exit
을 닫거나 입력 하여su
세션 을 종료하십시오 .
이와 같은 약 1,500 개의 1MB 파일을 삭제하고 "사용 가능한 스토리지 부족"문제를 해결했습니다.
다른 포스터와 마찬가지로 Galaxy S II를 소유하고 있으므로 해당 모델에 문제가있는 것 같습니다.
로그 파일 작성을 중지하는 영구적 인 솔루션에 대해 아는 사람이 있으면 알려주십시오.
참고 : 일부 파일 관리자는 /data/log
권한이없는 상태에서 실행 중이므로 파일을 볼 수있는 권한이없는 것으로 잘못 표시 됩니다.
메모리는 일반적으로 실행하는 파일 (스왑 파일과 같은 종류)을 실행하는 데 사용되도록 OS에 의해 예약되어있을 수 있습니다. 당신은 다른 응용 프로그램에서 짜낼 수 있습니다
- 다시 시작한 직후에 설치하려고 시도하거나
- 실행중인 일부 앱을 강제 종료하면 (그러나 두 번째 옵션은 좋지 않을 수 있습니다. 첫 번째 링크 참조),
그러나 유일한 좋은 해결책은
- 앱을 직접 설치할 수 있도록 SD 카드를 다시 분할하십시오 (두 번째 링크 참조).
포럼 게시물 살펴보기 메모리 부족 경고! .
중요한 부분은 다음과 같습니다.
OS는 이미 보유한 앱을 실행하는 데 필요한 메모리 양을 알고 있습니다. 이것은 완벽한 예입니다.
이제 RAM에있는 일부 앱을 강제로 닫아 OS를 "속일"수 있습니다. 이렇게하면 메모리의 "버킷"이 증가하여 앱을 설치할 수 있지만 이러한 유형의 작업을 수행하면 길에서 문제가 발생할 수 있음을 기억하십시오. 지연, 오류 메시지 등 (OS를 속이기 때문에) 당신이 생각했던 사실에 당신이 추가 기억을 주었을 때 .. 당신은 강제로 폐쇄되었습니다).
무슨 일이 일어나고 있는지에 대한 또 다른 좋은 설명은 포럼 포스트 낮은 내부 메모리에 있습니다.
중요한 부분은 다음과 같습니다.
내부 공간이 가득 찬 이유는 3 배입니다. 먼저, 앱이 SD 카드로 "이동"되면 완전히 이동되지 않습니다. 실제로는 일부만 사용됩니다. 둘째, 앱의 Dalvik 캐시는 여전히 내부 메모리에 저장되어 있습니다 (이는 상당한 공간을 차지합니다). 셋째, 앱 및 모든 시스템 설정에 대한 데이터는 내부 메모리에 저장됩니다 (예 : 일부 앱은 일부 데이터에 SD 카드를 사용하지만 모든 앱에는 내부 메모리에 데이터가 저장되어 있음).
그리고 스레드에는 SD 카드에 어떤 파티셔닝을 할 수 있는지에 대한 제안이 포함되어 있습니다 .
패키지 관리자 (“설치자”)에는 설계상의 문제가 있습니다. 여러 가지 가능한 오류를 구분할 수 없으며 정기적으로“충분하지 않은 저장소”변명을합니다.
첫 번째 단계는 설치 문제 (1)이고 스토리지 부족 (2)과 관련이 없는지 식별합니다 .
- 콘솔 (
pm install file.apk
), Google Play, 기타 시장 및 수동 GUI 설치 (예 : 다운로드 한 APK 파일 에서 "클릭" )에서 발생합니다. 다운로드 문제가 아닙니다 ... - 패키지는
/data
파티션에서 또는 대부분 SD 카드에서 (그리고 약간만/data
) 끝납니다 . – 두 장소 모두 <20MB 패키지에 대한 원래 포스터 (각각 33MB 및> 900MB)로 표시되는 충분한 공간을 보여줍니다. – 및 –/data
파티션의 사용 가능한 공간이 10 % 이상입니다 (33MB는 200MB의 10 % 이상).
놀랍게도 대부분의 답변은 이것을 고려하지 않습니다 ...
In reality, the /data
partition needs a cleanup from residues from previous installs.
- Identify the common name of the problematic package (for example, com.abc.def)
- Uninstall the package (for example,
pm uninstall com.abc.def
) - Check what’s left of it in data (for example,
find /data -name 'com.abc.def*'
) - Delete that stuff
The installer chokes on those, returning with the wrong reason. – The interesting part is: if the package gets installed on the SD card (forced or by other means) some (all?) leftovers on /data
don’t hurt... which leads to the false belief that it is indeed a space problem (more space on the SD card...)!
The Stack Overflow question where I got half of this from is Solution to INSTALL_FAILED_INSUFFICIENT_STORAGE error on Android.
The first thing to do is to check the details of the error message. For this you could use the LogCat App.
For me the problem was an error like
Cannot rename native library directory /data/app-lib/vmdl-... to /data/app-lib/com.xyz
The solution was to activate the common sense function in my brain and look for the com.xyz folder in the app-lib folder with ES-Explorer. I recognized that this folder was already there. So removing it solved the renaming problem and the apps can now install properly.
The same problem was coming for my phone and this resolved the problem:
Go to
Application Manager
/Apps
from Settings.Select
Google Play Services
.
Click
Uninstall Updates
button to the right of theForce Stop
button.Once the updates are uninstalled, you should see
Disable
button which means you are done.
You will see lots of free space available now.
I also had this issue while installating an app after I had uninstalled that. I resolved downloading Lucky Patcher and then click on menu - troubleshooting - remove fixes and backups (insufficient storage available). Please notice you need your device to be rooted.
I have an un-rooted Nexus 4 (which has only internal storage, no SD card) and was getting this error with larger apps updating. Smaller apps would update fine.
I discovered that it was because I have recently signed up to the Play Music All Access service and had pinned several albums.
These are downloaded to the hidden /data
partition and it was this that had run out of space (I assume)
I unpinned a couple of albums and now have no problems installing apps.
1. Restart the phone and then re-install the application!
I was also getting the same problem Insufficient Storage Available
on my device, but I restarted my device, and it worked fine!
PS.:
2. Install application on external storage
For this, set Storage Location
with the following command
adb shell pm set-Install-Location 2 // 2 for external storage ([SD card][1])
adb shell pm set-Install-Location 1 // 2 for internal storage
adb shell pm set-Install-Location 0 // for auto
I had this problem even with plenty of internal memory and SD memory. This solution is only for apps that won't update, or have previously been installed on the phone and won't install.
It appears that in some cases there are directories left over from a previous install and the new app cannot remove or overwrite these.
The first thing to do is try uninstalling the app first and try again. In my case this worked for a couple of apps.
For the next step you need root access on your phone:
With a file manager go to /data/app-lib and find the directory (or directories) associated with the app. For example for kindle it is com.amazon.kindle. Delete these. Also go to /data/data and do the same.
Then goto play store and re-install the app. This worked for all apps in my case.
I had the same problem, and it was solved by using App Cache Cleaner.
(HT: acejavelin@Android Forums)
I tried several of the suggested solutions, but none of them worked for me. After some research I stumbled upon a hint to move some apps from /data/app
to /system/app
. That freed up enough space to install new apps and update existing ones.
I can recommend the free utility SystemCleanup for moving the apps.
This is the easiest thing to do. Go to settings
look for storage
or memory
touch it and look for cached data
. touch it and clear your data from there. SIMPLE!!!
Does the app necessarily have to be installed in internal storage? If you are not running any service, you could try installing it on the external storage. This can be done by adding the following code in your manifest:
manifest
xmlns:android="http://schemas.android.com/apk/res/android"
android:installLocation="preferExternal".....
This usually works on Android 2.2 and higher in most of the cases. Be sure that your app will work properly if it is installed on the external storage. You'll get a good idea on what kind of apps can be installed on external storage in App Install Location.
When it comes to areal device, the behavior of devices seem different to a different group of devices.
Some of the strange collection of the opinion I heard form different people is:
- Restart your device after unplugging
- Remove some apps from device and free at-least 100 MB
- Try to install your app from the command line,
./adb install ~Application_path
- Move your application to SD card storage or make it default in SD card in the Android manifest file,
android:installLocation="preferExternal"
- You got a lot of memory acquiring stuff in the Raw folder which installs a copy in phone memory while instating an APK file and the device doesn't have enough memory to load them
- Root your device and install some good ROM which help to letting the device know about its remaining memory.
I hope one of them is relevant to you! ;)
Most of the space you have available is reserved by the OS. The best and easy fix is to move your apps to external storage. This will free up a lot of space for you.
Some apps need to reboot to completely install. Android just says it has insufficient memory for some reason - it should say it needs reboot to complete the installation. Try it - it will install completely automatically when you reboot.
I resolved this issue for myself. Though, the internal and SD memory was showing a lot of free space. It was an issue with phone memory, which was almost full.
Hence, I moved many of my apps from the phone memory to internal iemory, to free up the phone memory: Settings -> Storage -> Apps (under the internal storage section) -> Internal tab
Here are the ones which are not checked and that are occupying the space on the phone memory.
Click on the Apps (one by one) Click on the button: 'Move to Internal Storage'.
Once you free up a considerable amount of space on the phone memory this way, the error should not come.
After uninstalling a few apps I'm able to install the new one...
I think OS calculates the total memory required to run all apps. If it doesn't fit then it says "in sufficient memory".
I had the same issue on Galaxy S4 (i9505) on stock ROM (4.2.2 ME2). I had free space like this: 473 MB on /data
, 344 MB on /system
, 2 GB on /cache
. I was getting the free spate error on any download from Play Store (small app, 2.5 MB), I checked LogCat, it said "Cancel download of ABC because insufficient free space".
Then I freed up some space on /data
, 600 MB free, and now it's working fine, apps download and install ;). So it seems like this ROM needs a little more free space to work OK...
Clearing the Google Play cache memory will also help you... Go to the app information page of Google Play and clear it.
I did not find a free solution that worked, but I found a solution: I used the non-free version of Titanium backup, clicked on the context button and chose to check the memory occupied by apps. Find the download app, and you will see that it has a certain amount of space allocated to its cache. Clear data is the option that you want.
I got the same error message in case the package name was too long (>128 chars). Just using a shorter name fixed the issue.
I had more than 2 GB internal space and yet I was not able to install / update applications either from Google Play or manually.
Whatever may be the reason, wiping the cache partition solved my purpose.
Steps: Recovery -> Wipe cache partition -> Reboot system now
If you have root, delete all of the folders on the path:
/data/app-lib/
And then restart your device.
I had this issue many times, and this fix worked for me each time. It even has an XDA thread.
I write all folders, because if there is a problem with one app, there is a good chance you have this issue with other apps too. Plus, it's annoying to find just the folders of the problematic app/s .
Go to Settings, Apps, All and uninstall Google Play Store. This will replace by the old version and then you can download without the "Insufficient Storage ERROR" It works for me
I kept having this problem, and I cleaned up the Dalvik cache using Titanium Backup. You'll need to have your phone rooted. As soon as I did that I was able to update Swiftkey and Beautiful Widgets.
'Programing' 카테고리의 다른 글
CMake에서 GLOB 또는 각 파일을 사용하여 소스 파일을 개별적으로 지정하는 것이 더 낫습니까? (0) | 2020.06.21 |
---|---|
HTML 본문에 Chrome 개발자 도구를 사용하여 cz-shortcut-listen =“true”? (0) | 2020.06.21 |
LoDash : 객체 속성 배열에서 값 배열 가져 오기 (0) | 2020.06.21 |
FormsAuthentication.SignOut ()이 사용자를 로그 아웃하지 않습니다. (0) | 2020.06.21 |
WhatsApp 링크 공유를위한 이미지 제공 (0) | 2020.06.21 |