Try to use "Bundle assemblies into navtive code" but failed

KEVIN KE 41 Reputation points

I am using a VS2022 Enterprise and try to build an xamarin form (Andorid) project with "Bundle assemblies into navtive code" to reduce the APK size.
I got this promote comes always and will show "Installing..." but disapear soon and nothing changes.

What I know is I donot have NDK installed any I try to use Andorid SDK mamanger to install by always show me the network issue as blow

Fine, I am at china and this maybe blocked by gov. Any way for me to bypass it? I have manualy download the NDK Zip file and any way to manually install it?

Any help will be appreciated.

btw. I have install C++ and NDK for android with VS installer but still cannot.


A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,003 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 16,461 Reputation points Microsoft Vendor


    For this issue, you could try the following two methods:

    Method 1. You could try to download it using a phone hotspot or using a proxy.

    Method 2. As a matter of fact, the NDK files will be installed at Your_Android_SDK_Path/ndk-bundle folder. You could unzip your NDK Zip file to this path. Then, you will find the ndk has been installed in the Android SDK manager window.

    Best Regards,

    Alec Liu.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 additional answers

Sort by: Most helpful