You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[build] fix Windows build on a fresh machine (#1132)
We discovered the build fails on Windows if you:
- wipe out `~\android-toolchain`
- `git clean -dxf`
- `msbuild Xamarin.Android.sln /t:Prepare`
- Or just have a fresh machine
We need to reorder the steps of what happens in `PrepareWindows.targets`:
1. `git submodule update`
2. build `xa-prep-tasks`, which gets `.nuget\NuGet.exe`
2. `nuget restore`
3. build `android-toolchain` , which is the missing step that installs the Android SDK
4. proceed with everything else
Without step no. 3, the missing Android SDK that gets installed to
`~\android-toolchain` causes the `<JdkInfo />` task to fail.
0 commit comments