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

KEVIN KE 41 Reputation points
2022-11-19T03:41:01.383+00:00

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.
262057-2.png

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
262036-4.png
262035-3.png

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.

262088-5.png

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

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 42,186 Reputation points Microsoft Vendor
    2022-11-21T03:28:53.773+00:00

    Hello,

    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.