Please take a look at our Local Geocode sample which demonstrates how to license your app with the Standard ArcGIS Runtime license.
Recommended way is to license your app at the "App" level before you make calls to the ArcGIS Runtime objects
Component.onCompleted: {
//ArcGISRuntime.license.setLicense("enter your licence string here to be able run this sample in player or as standalone app. Without this, the app can be run in AppStudio only in developer mode.");
logLicenseLevel();
localLocator = ArcGISRuntime.createObject("LocalLocator", {path: copyLocalData()});
console.log(localLocator.json)
}
function logLicenseLevel() {
if (ArcGISRuntime.license.licenseLevel === Enums.LicenseLevelBasic) {
console.log("basic")
licenceLevel.text = "Basic"
} else if (ArcGISRuntime.license.licenseLevel === Enums.LicenseLevelStandard) {
console.log("standard")
licenceLevel.text = "standard"
} else if (ArcGISRuntime.license.licenseLevel === Enums.LicenseLevelDeveloper) {
console.log("developer")
licenceLevel.text = "developer"
}
Hope this helps.
Nakul