Android Emulator - "Encryption unsuccessful"
Asked Answered
P

5

39

Almost every time I try to open the emulator is giving me this error after a long loading pause.

I have tried to fix it by reinstalling the SDK, but no luck.

Note: I must say that I am new to Android.

enter image description here

Proclivity answered 20/5, 2017 at 17:2 Comment(3)
This is happening because your phone is still trying to use your internal sdcard, but it isn't accessible. You will need to trick your phone to use the external sdcard as if it was the internal.Fanchet
How can I do this in Android Studio?Proclivity
If you are using Xamarin Visual Studio the "Factory Reset" option also worksShantelleshantha
C
47

Wiping data in Android Virtual Device Manager helped me in my case.

Tools -> Android -> AVD Manager -> Actions (triangle down) -> Wipe Data

Android Virtual Device Manager

There is also Advanced settings in virtual device's configuration (the pencil) where is a configuration of SD card and internal storage, but I didn't have to change it.

Caye answered 25/5, 2017 at 19:51 Comment(3)
Thank you. It worked! However, it is still booting extremely slow.Proclivity
@CristianaDumitru You're welcome, Android emulator is terribly slow - it's always better to use a real device. Check if you use x86 (or x86_64) version of an image in the emulator, it's faster than ARM version.Caye
Using Visual Studio 2019 16.8.3 I had to follow similar steps but Tools > Android Device Manager > ... > Factory ResetDurable
R
11

Android Device Manager > Stop your device and right click > Factory Reset

Riemann answered 14/11, 2018 at 15:50 Comment(0)
O
2

My problem was two-fold. It turned out that I only needed to apply one set of fixes to address both of them!

Laptop had the OP's error, with the added "Gboard stopped" message superimposed on top of it

Dev-rig's Android Emulator was just a black screen that never changed!

How to fix

  1. Go to Tools -> Android -> Android SDK Manager
  2. Run all the pre-selected updates
  3. Go to the Tools tab
  4. Expand "Android SDK Tools" and select the latest available, or v26.x.
  5. Expand "Android SDK Build Tools" and make sure you have the ability to actually build whatever you just selected in #4
  6. Run those updates
  7. ... and Bob's your uncle!

enter image description here

Omnibus answered 18/9, 2019 at 4:2 Comment(0)
L
1

I'm sure you've already figured it out at this point, but one thing that helped me was simply right-clicking it in the Android Device Manager, and then clicking on 'Start with Factory Default.'

enter image description here

it's grayed out in mine because I've already done it Hope this helps!

Lapidate answered 26/4, 2020 at 16:3 Comment(0)
C
0

In recent Android Studio versions, you can achieve the same results with this

AVD Manager -> Select device -> Cooled Boot Now

or this

AVD Manager -> Select device -> Edit -> Advanced -> Boot option: Cool Boot

Clamber answered 20/5, 2021 at 6:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.