Android/Eclipse: where to write command-lines like "emulator -wipe-data"?
Asked Answered
A

4

16

Many blogs mention writing command lines to do different stuffs...but I don't know where to write these command lines! For example, I want to clean my emulator with emulator -wipe-data but where should I put this?

Alanna answered 26/7, 2011 at 14:33 Comment(0)
S
34

Open command prompt & goto

android-sdk-windows\tools

Then for the following command:

emulator -avd -wipe-data

use something like:

emulator -avd myandroidavd -wipe-data
Shrimp answered 26/7, 2011 at 14:37 Comment(4)
Thanks ! But how to open "command prompt" ? :) Sorry for my stupid questions... (on Mac ? And on PC ?)Alanna
Check this: "How to use command prompt and cmd commands" youtube.com/watch?v=foYsmpDrYjYShrimp
Thanks ! It works on my PC but not on my Mac. Somebody knows how to clean the AVD on a Mac ?Alanna
The emulator launches after the wipe, is it possible to disable that?Ulcerous
D
1

to set the wipe option on Mac, with the Android SDK Manager running, click the start button to launch an AVD. A Launch Options window opens. There is a Wipe User Data checkbox about half way down.

Danzig answered 9/11, 2012 at 3:12 Comment(0)
C
1

So Simple Solution. If you have Ubuntu System, Then Go to this path:

/home/rahul/Android/Sdk/emulator

If you have other Operating System, Then go to this path according to you. After Check List of Emulators using this command:

./emulator -list-avds

It will show thw result look like:

Pixel_3_XL_API_29
Pixel_3_XL_API_29_2
Pixel_3_XL_API_29_3

After, All Wipe Command:

emulator -avd Pixel_3_XL_API_29_3 -wipe-data
Concatenation answered 9/5, 2023 at 9:10 Comment(0)
M
-4

You can follow the accepted answer or simply open the AVD manager and follow the below demonstration to wipe the emulator data.

enter image description here

Click the down arrow icon next to the edit icon.

enter image description here

Click wipe data. enter image description here

Mordvin answered 6/11, 2019 at 3:12 Comment(2)
this is not from command linePinxit
@pepan, Thanks for finding this out after 2 and a half years of posting this answer. This answer is for the newbies who can do the same approach without a terminal.Mordvin

© 2022 - 2025 — McMap. All rights reserved.