About running cordova emulate

throw the error:
Exception in thread “main” java.lang.NoSuchMethodE
rror: com.android.prefs.AndroidLocation.getAvdFold
er()Ljava/lang/String;
at com.android.sdklib.tool.AvdManagerCli.i
nit(AvdManagerCli.java:278)
at com.android.sdklib.tool.AvdManagerCli.r
un(AvdManagerCli.java:210)
at com.android.sdklib.tool.AvdManagerCli.m
ain(AvdManagerCli.java:200)
when i run cordova emulate android -lc --prod

my ionic info

@ionic/cli-utils  : 1.10.1
ionic (Ionic CLI) : 3.10.1

global packages:

Cordova CLI : 7.0.1

local packages:

@ionic/app-scripts : 2.1.3
Cordova Platforms  : android 6.2.3
Ionic Framework    : ionic-angular 3.6.0

System:

Android SDK Tools : 25.2.3
Node              : v6.11.1
npm               : 3.10.10
OS                : Windows 10

What is the exact command you are running?
What is the full output of that command?

cordova emulate android -lc --prod

This is not an ionic command. Cordova doesn’t even know what to do with --prod.
If you develop with Ionic, you should use ionic cordova emulate android -lc --prod.

I also asked for the full output and not just what you posted above.

ok when i use use ionic cordova emulate android -lc --prod.

[16:31:59] lint finished in 5.13 s
:preBuild
UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:preReleaseBuild UP-TO-DATE
:prepareComAndroidSupportAnimatedVectorDrawable2340Library
:prepareComAndroidSupportAppcompatV72340Library

:prepareComAndroidSupportSupportV42411Library

:prepareComAndroidSupportSupportVectorDrawable2340Library

:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl
UP-TO-DATE
:CordovaLib:compileDebugNdk
UP-TO-DATE

:CordovaLib:compileLint

UP-TO-DATE
:CordovaLib:copyDebugLint

UP-TO-DATE
:CordovaLib:mergeDebugShaders
UP-TO-DATE

:CordovaLib:compileDebugShaders
UP-TO-DATE

:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets

UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles

UP-TO-DATE
:CordovaLib:packageDebugRenderscript
UP-TO-DATE

:CordovaLib:compileDebugRenderscript

UP-TO-DATE
:CordovaLib:generateDebugResValues

UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources

UP-TO-DATE
:CordovaLib:processDebugManifest
UP-TO-DATE
:CordovaLib:generateDebugBuildConfig
UP-TO-DATE
:CordovaLib:processDebugResources

UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:CordovaLib:javaPreCompileDebug
:CordovaLib:compileDebugJavaWithJavac
UP-TO-DATE

:CordovaLib:processDebugJavaRes
UP-TO-DATE

:CordovaLib:transformResourcesWithMergeJavaResForDebug

UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug

UP-TO-DATE
:CordovaLib:mergeDebugJniLibFolders

UP-TO-DATE
:CordovaLib:transformNativeLibsWithMergeJniLibsForDebug

UP-TO-DATE
:CordovaLib:transformNativeLibsWithStripDebugSymbolForDebug
UP-TO-DATE

:CordovaLib:transformNativeLibsWithSyncJniLibsForDebug

UP-TO-DATE
:CordovaLib:bundleDebug
UP-TO-DATE

:prepareDebugDependencies

:compileDebugAidl

UP-TO-DATE
:compileDebugRenderscript
UP-TO-DATE

:generateDebugBuildConfig
UP-TO-DATE

:generateDebugResValues

UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources
UP-TO-DATE

:processDebugManifest UP-TO-DATE
:processDebugResources
UP-TO-DATE

:generateDebugSources UP-TO-DATE
:incrementalDebugJavaCompilationSafeguard
UP-TO-DATE
:javaPreCompileDebug

:compileDebugJavaWithJavac
UP-TO-DATE

:compileDebugNdk UP-TO-DATE
:compileDebugSources UP-TO-DATE
:mergeDebugShaders UP-TO-DATE
:compileDebugShaders UP-TO-DATE
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets

:transformClassesWithDexForDebug

UP-TO-DATE
:mergeDebugJniLibFolders
UP-TO-DATE

:transformNativeLibsWithMergeJniLibsForDebug
UP-TO-DATE

:transformNativeLibsWithStripDebugSymbolForDebug
UP-TO-DATE
:processDebugJavaRes
UP-TO-DATE

:transformResourcesWithMergeJavaResForDebug
UP-TO-DATE

:validateSigningDebug

:packageDebug

:assembleDebug
:cdvBuildDebug

BUILD SUCCESSFUL

Total time: 4.718 secs
Built the following apk(s):
C:/Users/Admin/Desktop/ionic/hse-ionc3-platform/platforms/android/build/
outputs/apk/android-debug.apk

ANDROID_HOME=F:\android-sdk-windows
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_31
Error: cmd: Command failed with exit code 1 Error output:
Exception in thread “main” java.lang.NoSuchMethodError: com.android.prefs.Androi
dLocation.getAvdFolder()Ljava/lang/String;
at com.android.sdklib.tool.AvdManagerCli.init(AvdManagerCli.java:278)
at com.android.sdklib.tool.AvdManagerCli.run(AvdManagerCli.java:210)
at com.android.sdklib.tool.AvdManagerCli.main(AvdManagerCli.java:200)

[ERROR] An error occurred while running cordova emulate android (exit code 1)

Please edit your post, it is not very readable at the moment.
Use the </> button above the input field to format your code, command line output or error message (select the text first, then click the button or wrap it in ``` manually). Check the preview if it looks better. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.

What does ionic cordova requirements output?

Also post your ionic info output please.

ionic cordova requirements output

Java JDK: installed 1.8.0
Android SDK: installed true
Android target: not installed
cmd: Command failed with exit code 1 Error output:
Exception in thread “main” java.lang.NoSuchMethodError: co
m.android.prefs.AndroidLocation.getAvdFolder()Ljava/lang/S
tring;
at com.android.sdklib.tool.AvdManagerCli.init(AvdM
anagerCli.java:278)
at com.android.sdklib.tool.AvdManagerCli.run(AvdMa
nagerCli.java:210)
at com.android.sdklib.tool.AvdManagerCli.main(AvdM
anagerCli.java:200)

Gradle: installed F:\Android Studio\gradle\gradle-3.3\bin
gradle
Error: Some of requirements check failed

ionic info output

@ionic/cli-utils  : 1.10.2
ionic (Ionic CLI) : 3.10.3

global packages:

Cordova CLI : 7.0.1

local packages:

@ionic/app-scripts : 2.1.3
Cordova Platforms  : android 6.2.3
Ionic Framework    : ionic-angular 3.6.0

System:

Android SDK Tools : 25.2.3
Node              : v6.11.1
npm               : 3.10.10
OS                : Windows 10