limelect 48 Posted May 18, 2023 I downloaded the community edition for evaluation 11.3 On my D10.2.3 I have Avd Manger and SDK manager No such programs on the 11.3 Any advice? Can I compile it for Android? Ndk and SDK exist. Can I copy the above programs to (user) 22 folder? Share this post Link to post
Patrick PREMARTIN 76 Posted May 18, 2023 After installation they are available in the Publics documents / Embarcadero / Studio / 22 / CatalogRepository / NDK, JDK,etc folder You can get the folders from Tools / Options / Deployment / SDK / Android If you didn't add them, you'll find the JDK/NDK/Java options in Tools / Platforms / Options dialog box Share this post Link to post
programmerdelphi2k 237 Posted May 18, 2023 (edited) 7 hours ago, limelect said: No such programs on the 11.3 if fact, you dont need "install it", but just "COPY it" from any PC with SDK/NDK Android. Of course, need the same version used in RAD 11.x!!! Using Android Studio, you can download it, not problem, but need pay attetion that the Android Studio is a little different about setup file (please read about this) Summary: you can copy SDK/NDK Android (to RAD 11.x) folders from any other PC (Android SDK/NDK is free for install/copy) you can copy this folders to any disk/folder that you want (dont need be Public\...\Embarcadero\...etc) -> just use Tools->Options->Deployment->SDK-Android... and use it!!! in default RAD 11.x install, you dont have all files in SDK/NDK android... you need install (copy it) later install RAD!!! -- you'll have just the "commandlinetools-win-XXXXXXX.zip" - unzip to see the tools or download it from Android Studio site!!! in x:\xxxxx\AndroidSDK\cmdline-tools\bin you'll have the "sdkmanager.bat" that can aux in update your sdk/ndk basically, you can: sdkmanager.bat --help to see all params to update your Android SDK/NDK for example: skdmanager.bat --sdk_root=<<Path root of your Android SDK>> --list <-- to know what packages is on Google skdmanager.bat --sdk_root=<<Path root of your Android SDK>> --list_Installed <-- to know what packages is installed in your PC sdkmanager.bat --sdk_root=<<Path root of your Android SDK>> --update "build-tools;31.0.0" "cmdline-tools;v5" <--- to install this packages sdkmanager.bat --sdk_root=<<Path root of your Android SDK>> --uninstall "build-tools;31.0.0" "cmdline-tools;v5" <--- to uninstall it etc... you can try download the files using Android Studio (just for first download files).. then in Settings, see where was dowloaded later, copy the folders for your disk/folder to better access (if you want) later, in RAD Studio, just use it! later, you can use "SDKManager.bat" for update it (if dont need Android Studio anymore)! I have used SDK/NDK from RAD 10.4 and updated using SKDManager.bat to download news version to 11.x and works so good! Any thing, do the tests because RAD11 use another SDK/NDK versions!!! Edited May 18, 2023 by programmerdelphi2k Share this post Link to post
limelect 48 Posted May 18, 2023 2 hours ago, Patrick PREMARTIN said: After installation they are available in the Publics documents / Embarcadero / Studio / 22 / CatalogRepository / NDK, JDK,etc folder You can get the folders from Tools / Options / Deployment / SDK / Android If you didn't add them, you'll find the JDK/NDK/Java options in Tools / Platforms / Options dialog box I have those folders but NO Avd Manger and.exe SDK manager.exe in them This is why I asked the question Share this post Link to post
programmerdelphi2k 237 Posted May 18, 2023 (edited) I think that this EXE is from old editions from Android in RAD, now is AVD*.BAT @rem Execute avdmanager "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %AVDMANAGER_OPTS% -classpath "%CLASSPATH%" com.android.sdklib.tool.AvdManagerCli %CMD_LINE_ARGS% Edited May 18, 2023 by programmerdelphi2k Share this post Link to post
limelect 48 Posted May 18, 2023 (edited) @programmerdelphi2k Ok, you are correct BUT I run the BAT with any error nothing. I expect those 2 windows to make a virtual Android and update. But I get nothing I will try again as I am not near my system Thanks Edited May 18, 2023 by limelect Share this post Link to post
programmerdelphi2k 237 Posted May 18, 2023 (edited) @limelect I think that you need download "an image platform" at first, to create your AVD... use SkdManager.bat to download your image desirable! I dont use virtual devices here! Edited May 18, 2023 by programmerdelphi2k Share this post Link to post
programmerdelphi2k 237 Posted May 18, 2023 dont forget set the enviroment var "REPO_OS_OVERRIDE" is set to "windows", before run the command to download set REPO_OS_OVERRIDE=windows Share this post Link to post
limelect 48 Posted May 18, 2023 @programmerdelphi2k 1. I use my phone 2.But i like to have the emulator for small staff 3 SkdManager.bat does nothing that is the problem Share this post Link to post
programmerdelphi2k 237 Posted May 18, 2023 (edited) @limelect my experience with "manuall" updates RAD installed - no SDK/NDK - OK ---> cmd-tools is a zip file, then unzip to see the "sdkmanager.bat" - if necessary, just download last cmd-tools from Android Studio official site! using old SDK/NDK from RAD 10.4 - update using sdkmanager.bat in RAD11 - ok with CMD-TOOLS you can use sdkmanager.bat to update your enviroment as said above if using Android Studio, you can to do the same downloads, BUT it change some setup files that is different from "manual" updates by SDKManager.bat... but if your warning dont worry, go ahead. you dont need REALLY use any virtual devices, alias, using real device is better and more performatic to install apps etc.. Edited May 18, 2023 by programmerdelphi2k Share this post Link to post
programmerdelphi2k 237 Posted May 18, 2023 (edited) @limelect I have test here create a new AVD (but as I dont have used anymore, it's necessary define a custom manually answer the questions) avdmanager create avd -n test -k "system-images;android-30;default;arm64-v8a" <-- your image to use a little here form SoF https://stackoverflow.com/questions/42792947/how-to-create-android-virtual-device-with-command-line-and-avdmanager Edited May 18, 2023 by programmerdelphi2k Share this post Link to post
limelect 48 Posted May 18, 2023 @programmerdelphi2k I am so used to both programs of EXE. Even in Android Studio Why change? after all, the output is the same for both programs, Share this post Link to post
programmerdelphi2k 237 Posted May 18, 2023 @limelect really, my opinion is: you can use what is better for you! Using Android Studio is very pratice, no command is necessary, all in UI! 🙂 Using command-line, is better for old-school pratices, I like this, more control! the big trap is a incompatible way to store the info about setup file, nothing more! as you know, JAVA is basically command-line, just look at "window message" when compiling any project in RAD Studio to Android, Linux, macOS, or same Windows... a lot of "dcc32, javaxxxx, etc..." Share this post Link to post
Madness 0 Posted December 5, 2023 Was this ever resolved? I am being forced by google to update to a minimum of API 33 but I have not found instructions that actually work for updating the SDK version in Delphi 11.3. There is no SDKmanager.exe or "SDK Manager.exe". Like you, I ran the sdkmanager.bat file and have no idea what it did, but what it did not do was install an exe file. Share this post Link to post