Home > database >  How do I used vscode to call android emulator and fix Execution failed for task ':firebase_core
How do I used vscode to call android emulator and fix Execution failed for task ':firebase_core

Time:02-06

How do I used vscode to call android emulator?

I can call iPhone13 & web, but when I used without debugging way, it wasn't call android emulator. I tried to add android it's show me avdmanager is missing from the Android SDK

Where has problems? I'd added android studio and create AVD emulator.

Because I tried to used flutter to development, so I needs use android, iPhone and web.

How can fix it?

I sloved the problem, but I got new issue, how do I fix it?

What went wrong: Execution failed for task ':firebase_core:compileDebugJavaWithJavac'. Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.

CodePudding user response:

On the top menu vscode:

Go to View -> Command Palette -> type Flutter: Launch Emulator and chosse it -> select an emulator to launch

CodePudding user response:

if you wanna call iPhoneEmulator must have Xcode fist

install iphoneSdk via Xcode

in Vscode you can call emulator via Terminal in Vscode

"flutter run" then select device you need

  •  Tags:  
  • Related