I run my app from Android Studio (clicking the green right-pointing arrow in Android Studio) to a device (Samsung SM-T530NU, rooted) Then I stop it and uninstall it. Then I run it again I see this in logcat:
Executing tasks: [:myapp:assembleDebug]
Gradle build finished in 2s 525ms
Session 'myapp': running
Session 'myapp': error
So the app does not run.
Then I do a rebuild. Then click run and I see this:
Installation failed with message INSTALL_FAILED_INSUFFICIENT_STORAGE.
Do you want to remove the application data?
The device has plenty of storage (about 7 of 16gb used) and about 2/3 of memory is used, with myapp using about 90mb of memory.
I've tried various measures suggest here, Android: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE but nothing helps.
What is the problem?