Posts

Showing posts with the label sdk

In VS2017 Android sdk is empty - no platforms or tools

Image
In VS2017 Android sdk is empty - no platforms or tools I'm developing a Xamarin.Forms iOS/Android app in VS2017. The previewer works fine in iOS but not in android. I've cleaned and rebuilt but the problem persists. I've tried to update to latest in sdk but it comes up blank? I've attached screenshots of the sdk manager window and Xamarin settings. What am I missing? That's what the 2nd picture is . . . – Jeff Bowyer Dec 5 '17 at 18:19 1 Answer 1 In Android SDKs and Tools, click on three dots in right top corner and set up Android SDK location to "C:Program Files (x86)Androidandroid-sdk". After that, it should pick up all installed modules and show them in the list. By clic...

How to use variable slots in a string in node.js?

How to use variable slots in a string in node.js? I am working in Google Assistant's Action SDK and in my code I want a {location} slot. I have tried this:- gapp.intent('actions.intent.TEXT', (conv, input) => { let rawInput = input.toLowerCase(); console.log('USER SAID ' + rawInput); if(rawInput == `i am in ${loc}`) { console.log("User is in " + loc); conv.ask("Okay so you are in" + loc); } } However if i say "I am in mumbai" in the simulator it doesn't enter this 'if' statement. How can I use the "loc" variable in the user input? What loc variable? It's not declared or set to a value anywhere in the code you posted. edit oh wait; that's simply not how string templates work. They're for creating strings, not pattern matching. – Pointy Jun 30 at 13:29 ...