Skip to content

Conversation

@jonpryor
Copy link
Contributor

@jonpryor jonpryor commented Sep 15, 2021

Context: https://dl-ssl.google.com/android/repository/repository2-1.xml

Update the preferred Android SDK component versions to the current latest
versions listed in the Android Repository file:

  • $(AndroidSdkBuildToolsVersion)/build-tools to 31.0.0

  • $(AndroidCommandLineToolsVersion)/cmdline-tools to 5.0

  • $(AndroidSdkPlatformToolsVersion)/platform-tools to 31.0.3

  • $(AndroidSdkPlatformVersion)/platform to android-31

  • $(AndroidNdkVersion)/ndk-bundle to 22.1.7171670

    Note: there is an NDK r23 package in ndk;23.0.7599858, and
    xamarin-android supports NDK r23 as of
    xamarin/xamarin-android@f361d997, but that is installed into
    a versioned directory, a'la $ANDROID_SDK_ROOT/ndk/23.0.7599858,
    which (1) may not be fully supported, and (2) isn't supported
    by the Android SDK Manager.

    The latest ndk-bundle package is 22.1.7171670.

Additionally, the Android SDK tools component has been
deprecated since 2017-Sep. Add a comment noting that
$(AndroidSdkToolsVersion) should be considered obsolete, and that
we should eventually remove it.

<AndroidSdkPlatformVersion Condition="'$(AndroidSdkPlatformVersion)' == ''">android-30</AndroidSdkPlatformVersion>
<AndroidNdkVersion Condition="'$(AndroidNdkVersion)' == ''">21.3.6528147</AndroidNdkVersion>
<AndroidSdkPlatformVersion Condition="'$(AndroidSdkPlatformVersion)' == ''">android-31</AndroidSdkPlatformVersion>
<AndroidNdkVersion Condition="'$(AndroidNdkVersion)' == ''">23.0.7599858</AndroidNdkVersion>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see this version in VS 2022, is there some other place they update this list?

image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears the Google repository manifest is out of date and it doesn't have the released version of the NDK.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The latest version the SDK repo has appears to be beta4

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can just put a NDK 22.x for now?

@grendello
Copy link
Contributor

I don't think we can merge until Google will have updated their manifest.

Context: https://dl-ssl.google.com/android/repository/repository2-1.xml

Update the preferred Android SDK component versions to the current latest
versions listed in the [Android Repository file][0]:

  * `$(AndroidSdkBuildToolsVersion)`/build-tools to 31.0.0
  * `$(AndroidCommandLineToolsVersion)`/cmdline-tools to 5.0
  * `$(AndroidSdkPlatformToolsVersion)`/platform-tools to 31.0.3
  * `$(AndroidSdkPlatformVersion)`/platform to android-31
  * `$(AndroidNdkVersion)`/ndk-bundle to 22.1.7171670

    Note: there is an NDK r23 package in `ndk;23.0.7599858`, and
    xamarin-android supports NDK r23 as of
    [dotnet/android@f361d997][2], but that is installed into
    a *versioned* directory, a'la `$ANDROID_SDK_ROOT/ndk/23.0.7599858`,
    which (1) may not be fully supported, and (2) *isn't* supported
    by the Android SDK Manager.

    The latest `ndk-bundle` package is 22.1.7171670.

Additionally, the Android SDK `tools` component has been
[deprecated since 2017-Sep][1].  Add a comment noting that
`$(AndroidSdkToolsVersion)` should be considered obsolete, and that
we should eventually remove it.

[0]: https://dl-ssl.google.com/android/repository/repository2-1.xml
[1]: https://developer.android.com/studio/releases/sdk-tools
[2]: http://github.com/xamarin/xamarin-android/commit/f361d997807504a69c29163811f362da701410b6
@jonpryor jonpryor force-pushed the jonp-bump-versions-2021-09 branch from dcfe31f to d53c0b5 Compare September 15, 2021 14:53
@jonpryor
Copy link
Contributor Author

Updated to prefer NDK 22.1.7171670, which is shown in #134 (comment)

@grendello
Copy link
Contributor

It appears Google changed the NDK component name in the SDK manifest. It used to be ndk-bundle and was unversioned, while with NDK r23 it became ndk;VERSION. For SDK Manager to support the new component name, changes need to be made to the Android SDK installer repo

@jonpryor jonpryor merged commit 440e6be into dotnet:main Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants