damou_ 1
damou_ 1

Reputation: 89

Android studio enable to move app to SD card

I have some issues to moving my application to the SD card storage, I changed in the AndroidManifest.xml

android.installLocation="auto"

However I still have an error when I try to move the app to the SD card "not enough storage space" though I have 20 GB available on my SD card.

<?xml version="1.0" encoding="utf-8"?>

<manifest xmlns:android="http://schemas.android.com/apk/res/android"

    package="com.example.mouad.kanjiapp"

    android:installLocation="auto"

    android:versionCode="2" android:versionName="1.2">

    <uses-permission android:name="android.permission.INTERNET" />

Error when trying to move the app to the SD card:

Error when trying to move the app to the SD card

Upvotes: 4

Views: 1706

Answers (2)

CaptainCrunch
CaptainCrunch

Reputation: 1403

Although accepted as an answer this is wrong. You avoided the problem by changing the manisfest yet again. If you want "auto" to work you have to create a signed build and install this version manually to the emulator. It will not show you this weird and wrong error message. Source: SD Card Transfer (not enough storage space)

Upvotes: 1

Martin Zeitler
Martin Zeitler

Reputation: 76649

there's also android:installLocation="preferExternal", which would prefer install to SD.

also see the documentation, for apps which should not be installed to external storage.

also, when the SD card being mounted via USB cable - you'll get that error.

Upvotes: 1

Related Questions