Unity asking NDK version that is no longer available - unity3d

The version of NDK Unity asking me to install is not on google site NDK Versions. The only one available is r19 version 19.2.5345600 but unity app is asking for r19 version 19.0.52321"
Image of the problem
Yeah, I know the problem can be solved by using Unity Hub but the reason I am not using that is because Unity Hub takes forever to download anything and my connection is slow. Unity Hub times out a lot and I have to install the entire unity 3D software and all of the external tools using it in order to download the NDK using Unity Hub. Currently, Unity doesn't allow you to add modules if Unity 3D is not downloaded using Unity Hub.
I have tried installing NDK r18 and r20 but that doesn't work, same problem.
So can anyone please help me?

You could try spoofing your NDK version, though this may cause unexpected behaviour. In Android ndk-r19c, modify source.properties such that:
Pkg.Desc = Android NDK
Pkg.Revision = 19.0.5232133

If you have Android Studio installed, (or can access via sdk manager, I guess )You can download the ndk version requested by Unity (r19 - 19.0.5232133) using the SDK manager.
Note: you have to uncheck the hide obsolete packages option

Related

What is the best way to update the Admob plugin in Unity?

error code pictureI have an old project on an old version of Unity (2018.4.36f LTS) with an even older Google Admob plugin in it. I would like to update the Google Admob SDK to have all the latest features, like the App Open Ad. But I don't know how to do it (PC running Windows 11) Thank you for your help!
You can download the latest sdk from here
It makes no difference what version of Windows you have. After downloading the sdk, open the Unity editor in the project you want and then drag or double click the downloaded file into Unity.

Problems with sdk and ndk in unity?

Can't build the project and use unity remote. What to do? Downloaded the latest 2020 LTS with a development package for android
External Tools
Unity hub
When installing a version from the Unity Hub, make sure you have selected the various android packages as you see in the image.
You have shown a link where you show that you did. If the procedure is the one I showed you above, you are not wrong.
Perhaps the problem may be related to Unity 2020.3.15 which in fact I do not find among the available downloads and which was released a few days ago. Maybe they caught some bugs (like maybe what you are showing), and took it out of the releases. Try downloading the 2020.3.14 version from the site (the one I use too), and see if the problem persists.
https://unity3d.com/get-unity/download/archive

IL2CPP does not work due to NDK (Unity 2019.2.0f1)

I desperately need to build 64-bit of my application since Google Play does not accept 32-bit apps anymore. Mono builds just fine but when I switch to IL2CPP it says it can't locate NDK. However, NDK is automatically installed via **Unity Hub.**
I saw similar posts regarding to NDK in previous versions of Unity but I thought this would be fixed by now with latest Unity version. I have also tried to use a different NDK but I was still getting the same error.
Please help....
Check the Preferences dialog in the Unity Editor. It should have an option to provide a path to the Android NDK directory. There you can manually enter the path to the proper NDK installation location.
Well actually this turned to be related to MacOS version. On my other Mac, which is newer, the same Unity version detects NDK just fine.
The reason is that the NDK path being set automatically by Unity is wrong:
Unselect 'android NDK installed with Unity' in Unity Preferences. It will show the NDK Path. At the end of the path, you need to add:
/android-ndk-r16b
Check here for more details:
https://stackoverflow.com/questions...nable-to-locate-android-ndk/58241817#58241817

Add android target to visual studio for Mac

I'm building over a non from scratch project, that a previous developer created in my office.
In a previous version of Unity - Visual Studio for Mac I generated some build for iOS, but now, with the newest version, I get this configuration:
Also, the configuration for Android is disabled.
How I can add Android as target for my project to generate an apk file?
UPDATE 1
VS Configuration.
UPDATE 2 / BUILD CONFING
Please refer to the following link to setup unity to make Android APK:
https://docs.unity3d.com/Manual/android-sdksetup.html
You will need to download: the latest version of java, and the android sdk.
You will need to set the unity path to the sdk
You will need to download and set up the android ndk.
Sounds like a lot of work but its really a lot of waiting. the Android SDK can take some time depending on which versions you wish to support and how far back you go.
Once you have followed the guide above you will be able to change your project to android in the project settings menu.
Good luck!
For mac users with unity looking to set up android:
Instructions for Mac
you should be able to select android here and then click switch platform...

Unable to list target platforms Unity 2018.1.0f2

I have a problem when i build / export my game into android's APK.
i've already replace latest tools folder to my SDK path but the problem still don't fixed.
So i tried to upgrade my Unity from 2017.2.0f3 into Unity 2018.1.0f2 and reconfigure my SDK path but still not working.
There's the error notice
Go through Unitys preferences and make sure android SDK Java SDK paths are configured. I had this error recently on a fresh install, the solution was to install https://developer.android.com/studio/releases/platform-tools ( also setting paths to platform tools in your system path can be useful while at it)