Closed jfversluis closed 1 year ago
Hello! To find the Android SDK, the Meteor extension uses the 'ANDROID_SDK_ROOT' environmental variable value. If this value is not specified, meteor tries to find the Android SDK in the default location defined by Android Studio. https://github.com/JaneySprings/DotNet.Meteor/blob/988fd8b9eac4eb59deb05bd241235d0401de1edc/src/DotNet.Meteor.Shared/Android/PathUtils.cs#L8-L22
In your particular case, you can do any of the following:
{
"version": "2.0.0",
"tasks": [
{
"type": "dotnet-meteor.task",
"target": "Build",
"args": [
"-p:AndroidSdkDirectory=/Users/jfversluis/Library/Developer/Xamarin/android-sdk-macosx"
],
"problemMatcher": [],
"label": "dotnet-meteor: Build",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
P.S. We expect to publish an article about build task customization in the near future. Please stay tuned!
Awesome, thanks for the quick responses and fixes/workarounds!
I guess this is not so much an issue outside of my environment then and this one can be closed.
When trying to run my project on Android I'm faced with the error below
Strange thing is that the exact same project does work from Visual Studio for Mac. When comparing the path that is passed in from this extension and where the Android SDK is installed according to VS for Mac, it seems that there is a mixup there:
Meteor: -p:AndroidSdkDirectory="/Users/jfversluis/Library/Android/Sdk"
VSMac: /Users/jfversluis/Library/Developer/Xamarin/android-sdk-macosx
Maybe this is not typical for everyone, but maybe it would be good to improve the search path and/or some way to configure the SDK path manually?