I have just installed RAD 12.3, after uninstalling all the previous versions.
However, I have hit a snag, and need help please.
Despite selecting the android option, none of the android sdk/ndk/java appears to have been installed. I installed the android studio separately, but among the multitude of files there does not appear to be an sdk or an ndk.
The second problem is that when I plug my phone in, it does not come up in the “Target” section, though its settings and the USB driver have not changed.
Thanks, Paul. I have read that, and have gotten precisely nowhere! Here is what I have tried:
Go to Tools / Options / SDK Manager
There are two entries: android 64-bit and android 32-bit.
First, the android-64 entries:
The entry for “SDK base path” is C:\Users\Public\Documents\Embarcadero\Studio\23.0\CatalogRepository\AndroidSDK-2525-23.0.55362.2017
This has a yellow triangle beside them, and clicking on this gives
“Cannot locate DSK base in this path, please check your selection”
I finally tracked down what I hope are the android SDK and NDK, in
c:\users\public\documents\Embarcadero\Studio\23.0\CatalogRepository
and selected the first of these in the SDK base path.
It still came up with the same error message.
Looking for adb.exe, I found it in
C:\Users\Public\Documents\Embarcadero\Studio\20.0\PlatformSDKs\android-sdk-windows\platform-tools
I have no idea what an “SDK API level location” should be.
The default (with its little yellow triangle) is
C:\Users\Public\Documents\Embarcadero\Studio\23.0\CatalogRepository\AndroidSDK-2525-23.0.55362.2017\platforms\android-35
Now for android-32 entries:
The entry for “SDK base path” is C:\Users\Public\Documents\Embarcadero\Studio\23.0\CatalogRepository\AndroidSDK-2525-23.0.55362.2017
Changing this as above (though it is the same!) continues the same error message.
The avdmanager.bat is OK, at C:\Users\Public\Documents\Embarcadero\Studio\23.0\CatalogRepository\AndroidSDK-2525-23.0.55362.2017\cmdline-tools\16.0\bin\avdmanager.bat
The adb.exe entry was changed to the same as for the 64-bit one, with removal of the yellow triangle.
Same comment re SDK API level location.
I can’t get the SDKManager app to work on RS12.3 either. It runs the sdkmanager.bat file OK and fills in the right-hand pane of the GUI. Unfortunately, the left-hand pane never populates. If I had to guess, I’d say that the bat file is not producing the SDK list needed by SDKManager.exe. Maybe SDKManager is having trouble parsing the batch file output due to a change in its format?
Hmmm. My errors and warnings look different than yours so there must be differing contents between your folder(s) and mine.
Is there some way to refresh the CatalogRepository folder tree without doing a reinstall of RS 12.3? I have a lot of components installed and it is a royal PITA to do a full RS reinstall.
I’m not sure but I think you only need to try reinstalling the SDK.
Have you tried going into tools–>manage features and then unselecting the Android SDK and the NDK? Then once finished, run it again and reselect both SDK and NDK.
The other thing to try might be to ask a question in the Delphi Worlds Slack group (if you haven’t already) since they have a bunch of Android people in there who might have come across this problem. https://slack.delphiworlds.com
I tried reinstalling the SDK - it didn’t help. I still have the blank left-hand pane in the Android SDK Manager tool with a pure-stock multiplatform install.
I’ll give the Slack group a try tomorrow.
Thanks for the tips! Even though the reinstall didn’t help, it gave me confidence that that I have a valid setup and something else is going wrong. Now to find the “something else”
I went into Tools / Manage Features and found that in spite of selecting Android at installation it was not checked. I checked it, and it started to instal Android stuff. Unfortunately it then pranged out with a message:
[Administrator] RAD Studio 12
Java JDK not found on this machine. Please install Java JDK before.
I looked up “Java NDK” on the net. It took me to an Android NDK site, and I pulled down
android-ndk-r27c-windows.zip
which has nothing useful to tell you how to instal the Java NDK under windows.
I looked again, and pulled down
JRE-8u441-Windows-x64.exe and
JRE-8u441-Windows-i586.exe
and installed them both. then went back to reinstalling RAD Studio, and got the same error message.
I did a complete uninstall of RAD Studio and a reinstall, and continued to get the same message.
(2, 3)
On the desktop:
Things seem to have installed OK, but I cannot get the new RAD Studio to communicate with my Samsung S22 phone (though the previous version could). I realise that Samsung have made life a lot more difficult for developers, making you swap USB modes every time you want to look at files rather than develop programmes, but with all the settings apparently correct Delphi cannot use the S22 as a target. Any ideas?