Skip to main content

Project: Set Up Your Salesforce Mobile Developer Tools for Lightning Web Components (step 3)

 

OUTPUT in Visual Studio Code that I get:

***

Starting SFDX: Start Local Development Server

 

23:35:38.96 sfdx force:lightning:lwc:start

Starting SFDX: Preview Component Locally

 

23:35:38.114 sfdx force:lightning:lwc:preview -p Android -t emul1 -n c/bikeCard -a browser -d c:\Users\Serhiy\Desktop\SALESFORCE\VSC bikeCard\bikeCard --loglevel warn

Use of this plugin is subject to the Salesforce.com Program Agreement. 

By installing this plugin, you agree to the Salesforce.com Program Agreement<https://trailblazer.me/terms> 

and acknowledge the Salesforce Privacy Policy<https://www.salesforce.com/company/privacy.jsp>.

 

Starting LWC Local Development.

Username: serhiydd@wise-unicorn-r49da9.com

Api Version: 49.0

 

[STARTED] Requirements

[STARTED] Checking SDK root location

[STARTED] Checking Android SDK Prerequisites

[STARTED] Checking Android Command Line Tools

[STARTED] Checking SDK Platform Tools

[STARTED] Checking SDK Platform API

[STARTED] Checking SDK Platform Emulator Images

[TITLE] FAILED: Checking SDK root location (0.000 sec)

[DATA] SfError: SDK root location not found. Please set up ANDROID_SDK_ROOT or ANDROID_HOME in your environment.

[TITLE] Requirements (0.000 sec)

[TITLE] FAILED: Checking Android Command Line Tools (0.000 sec)

[DATA] SfError: Android command line tools not found.

[TITLE] Requirements (0.000 sec)

[TITLE] FAILED: Checking SDK Platform Tools (0.000 sec)

[DATA] SfError: No supported Android platform tools found. Minimum supported Android platform tools version is 23.

[TITLE] Requirements (0.000 sec)

[TITLE] FAILED: Checking Android SDK Prerequisites (0.000 sec)

[DATA] SfError: Android SDK is missing prerequisites: JAVA_HOME is not set.

[TITLE] Requirements (0.000 sec)

[TITLE] FAILED: Checking SDK Platform API (0.000 sec)

[DATA] SfError: No supported Android API package found. Minimum supported Android API package version is 23.

[TITLE] Requirements (0.000 sec)

[TITLE] FAILED: Checking SDK Platform Emulator Images (0.000 sec)

[DATA] SfError: Install at least one of these emulator images: google_apis,default,google_apis_playstore

[TITLE] Requirements (0.000 sec)

[SUCCESS] Requirements (0.000 sec)

ERROR running force:lightning:lwc:preview:  Requirement verifications for platform %s failed.

23:35:45.268 sfdx force:lightning:lwc:preview -p Android -t emul1 -n c/bikeCard -a browser -d c:\Users\Serhiy\Desktop\SALESFORCE\VSC bikeCard\bikeCard --loglevel warn

 ended with exit code 1

 

Error: Failed to start Android Emulator 'emul1'.

[HPM] Proxy created: /  -> https://wise-unicorn-r49da9-dev-ed.trailblaze.my.salesforce.com

[HPM] Subscribed to http-proxy events: [ 'proxyReq', 'error', 'close' ]

cp: no such file or directory: c:/Users/Serhiy/Desktop/SALESFORCE/VSC bikeCard/bikeCard/force-app/main/default/staticresources/*

cp: no such file or directory: c:/Users/Serhiy/Desktop/SALESFORCE/VSC bikeCard/bikeCard/force-app/main/default/contentassets/*

LWR6003: Listening on :3333

Server up on http://localhost:3333

LWR6000: Created version hash "21050663ea"

***

 

Anyone can help?

 

#Trailhead

답변 4개