Mark Gorst 0 Posted November 28 I think this is an IDE topic and not cross platform as the problem lies in the IDE setup/installation. In particular the installation of Android SDK/NDK I have two copies of Delphi 11.2 - effectively one in the office and one on the home office PC. Both run Windows 10 (I know this problem could go away with updating to Delphi 12 and/or Windows 11 - but it's case of our development platforms being consistent across the team). This problem has turned up in Delphi 11* versions, everything was fine in 10.4 In one case everything has installed absolutely fine and in both cases I installed the Android SDK/NDK from the platform manager. On one machine everything is fine, on the other machine SDK "build-tools" folder did not install and therefore I cannot deploy an Android version of my code from that machine (I could in 10.4). The Platform manager does not offer and "uninstall", removing the SDK/NDK folders under Public/Documents/... did not encourage it to let me re-install. I tried upgrading from 11.2 to 11.3 - and still missing folders... So I have copied across the SDK/NDK folders that work to the failing installation and tried to add this using the Deployment | SDK manager - but I get an orange triangle with an exclamation mark next to the NDK path.....and so cannot continue. I presume it means there's something it doesn't like in that folder. I have found other SDK/NDK versions I can download from the Embarcadero website, and the method for installing is to use the GetIt Manager - except they are not listed in the GetIt Manager. So I can't do that. I've got the latest Java updates installed. I'm guessing that there is something else that needs to be configured after copying across the SDK/NDK folders - a path ? an environmental variable ? but I've not been able to discover anything suitable. The folders that worked on one machine are AndroidSDK-2525-22.0.46141.0937 (10,950 files) and AndroidSDK-NDK-22.0.46141.0937 (4 files) Can anyone help ? Share this post Link to post
alejandro.sawers 11 Posted Thursday at 08:01 PM 2 hours ago, Mark Gorst said: SDK "build-tools" folder did not install I remember the Android SDK installation failing here and there, sometimes for unknown reasons. Luckily I have and old VM with Delphi 11.1 installed and it seems that the Android SDK also failed here (red underline is mine): If this is how your installation looks then doing a command-line install of the missing tools should solve the issue. On the SDK folder you should have a "cmdline-tools" folder, go inside to "latest\bin" and locate "sdkmanager.bat". Open a command line window in the folder that contains "sdkmanager.bat" and run a command like this one (note the versions of "build-tools" and "platforms" on red that your IDE demands and adjust the command accordingly): sdkmanager.bat --install "build-tools;30.0.3" "platform-tools" "platforms;android-30" After the command completes refresh the SDK Manager page. 2 hours ago, Mark Gorst said: I know this problem could go away with updating to Delphi 12 Unless you use the ISO installer, which causes a very similar issue but easier to fix. Share this post Link to post
Mark Gorst 0 Posted Friday at 10:25 AM Thanks very much for this reply. Greatly appreciated. With regards to the second suggestion, the link to fixing the ISO installer issue links to fixing it for 64bit Linux and I need to fix it for 32bit Android - so I'm not sure if that's the solution. Back to the first suggestion of running sdkmanager.bat. I did run this but ran into a problem which gave me a warning : Info: Parsing C:\Users\Public\Documents\Embarcadero\Studio\22.0\CatalogRepository\AndroidSDK-2525-22.0.46141.0937\platform-tools\package.xml Info: Parsing C:\Users\Public\Documents\Embarcadero\Studio\22.0\CatalogRepository\AndroidSDK-2525-22.0.46141.0937\platforms\android-32\package.xml Warning: Errors during XML parse: Warning: Additionally, the fallback loader failed to parse the XML. I'm not sure how significant this is, as it's a warning, and with 10,950 files guessing the solution isn't easy. The end result, however, is that it makes no difference, I still get the orange triangle/exclamation mark next to the NDK path. Share this post Link to post
Mark Gorst 0 Posted Friday at 10:43 AM I have however dug a little deeper and found a possible problem. With my 10.4 installation I was configured with the SDK and NDK folders as AndroidSDK-2525-21.0.40680.4203 AndroidNDK-21-21.0.40680.4203 and I've realised that I don't have an NDK equivalent installed in the CatalogRepository I had been trying to use AndroidSDK-2525-22.0.46141.0937 AndroidSDK-NDK-22.0.46141.0937 I don't have a matching SDK/NDK pair, only SDK/SDK-NDK : so I will need to return to my other machine and see if there is an AndroidNDK-2525* folder - will be following this up in a few days. Share this post Link to post
alejandro.sawers 11 Posted Friday at 02:08 PM 3 hours ago, Mark Gorst said: I'm not sure how significant this is, as it's a warning You can safely ignore the warning as long as the command completes successfully. 3 hours ago, Mark Gorst said: The end result, however, is that it makes no difference, I still get the orange triangle/exclamation mark next to the NDK path. That's expected as the command fixes issues with the SDK, not with the NDK. 3 hours ago, Mark Gorst said: I've realised that I don't have an NDK equivalent installed Given that you copied SDK/NDK files from another machine and also updated from 11.2 to 11.3 (and your NDK seems to be missing now) your best bet would be reinstall Delphi from scratch and only then apply the command-line (if needed at all of course). 3 hours ago, Mark Gorst said: With regards to the second suggestion, the link to fixing the ISO installer issue links to fixing it for 64bit Linux and I need to fix it for 32bit Android - so I'm not sure if that's the solution. It is not. The link contains a workaround just in case you decide to update to Delphi 12 and use the offline ISO installer to do so. It also contains notes for several platforms so look carefully. Share this post Link to post