Android Question [SOLVED] Sdk manager: IllegalArgumentException

squeegily

New Member
I have prepared all the following files, and informed the IDE of their locations:
  • C:\Program Files\Java\jdk1.8.0_251\bin\javac.exe
  • C:\Android\platforms\android-28\android.jar
  • C:\Android\tools\bin\sdkmanager.bat
Yet, it yields the following error when opening the "B4A Sdk Manager" section to try to prepare a virtual machine
B4A Sdk Manager:
Error: Warning: Could not create settings
java.langillegalArgumentException
     at
com.android.sdklib.tool.sdkmanager.SdkManagerCliSettings.
<init>(SdkManagerCliSettings.java:428)
     at
com.android.sdklib.tool.sdkmanager.SdkManagerCliSettings.c
reateSettings(SdkManagerCliSettings.java:152)
     at
com.android.sdklib.tool.sdkmanager.SdkManagerCliSettings.c
reateSettings(SdkManagerCliSettings.java:134)
     at
com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(Sdk
ManagerCli.java:57)
     at
com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(Sdk
ManagerCli.java:57)
     at
com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(Sdk
ManagerCli.java:48)
Usage:
sdkmanager [--uninstall] [<common args>]
[--packagefile=aile>] [<packages>...]
sdkmanager --update [<common args>]
sdkmanager --list [<common args>]
sdkmanager --licenses [<common args>]
sdkmanager --version
[further output omitted]

I have, so far, installed:
  • B4A 9.80
  • Oracle JDK 8u251
  • Android "commandlinetools" 6514223 (to C:\Android)
  • B4A's resources.zip latest (extracted into the same Android folder)
  • HAXM 7.6.1
What other information would be required to begin troubleshooting this?
 

Attachments

  • Capture.PNG
    Capture.PNG
    91.5 KB · Views: 292

squeegily

New Member
Well...for what it's worth, I seem to have fixed it by "dowgrading" the commandlinetools library.

See the attached screenshot; I'd mistakenly downloaded it via the red X'ed-out link.

You must use the blue circled link for this IDE, apparently: It looks like B4A is still operating off the older version of the API.

(Note that C:\Android\tools\ is the only folder that has to be deleted and replaced, thankfully.)
 

Attachments

  • Capture.PNG
    Capture.PNG
    74.9 KB · Views: 325
Upvote 0

squeegily

New Member
The best way to install B4A is by carefully following the installation instructions: https://www.b4x.com/b4a.html
You can see from my post that I [thought I had] followed those instructions to the T -- in fact, the very screenshot I attached showing which of the 2 links presented must be clicked was from that page you linked. I'm unclear why you are posting that, given that my post detailed the process I attempted to follow from that very page, and my follow-up/solution post was the necessary clarifications on how to interpret it.

I believe that the screenshotted part, in particular, could stand to be a little bit more clear about the fact that you must download that specific version, and that the only reason to click the latter link is to accept the EULA, and that nothing must be downloaded from the latter link.
 
Upvote 0
Top