Android Question New B4A Sdk Manager not work

cenyu

Active Member
Licensed User
Longtime User
Hello!

1. I Download B4ASdkManager.jar and run it
2. I can't install any Intel x86 Atom System Image there is a error message shown:

B4X:
Info: Preparing "Install Android Support Repository (revision: 47.0.0)".

Warning: File C:\Users\HPTS\.android\repositories.cfg could not be loaded.
Warning: An error occurred while preparing SDK package Android Support Repository: Unsupported record version Unknown-163.8.
javax.net.ssl.SSLException: Unsupported record version Unknown-163.8
    at sun.security.ssl.InputRecord.checkRecordVersion(InputRecord.java:552)
    at sun.security.ssl.InputRecord.readV3Record(InputRecord.java:565)
    at sun.security.ssl.InputRecord.read(InputRecord.java:532)
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983)
    at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:940)
    at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
    at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
    at sun.net.www.MeteredStream.read(MeteredStream.java:134)
    at java.io.FilterInputStream.read(FilterInputStream.java:133)
    at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3393)
    at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3386)
    at com.google.common.io.ByteStreams.copy(ByteStreams.java:70)
    at com.android.sdklib.repository.legacy.LegacyDownloader.downloadFully(LegacyDownloader.java:86)
    at com.android.repository.impl.installer.BasicInstaller.doPrepare(BasicInstaller.java:71)
    at com.android.repository.impl.installer.AbstractPackageOperation.prepare(AbstractPackageOperation.java:243)
    at com.android.sdklib.tool.SdkManagerCli.applyPackageOperation(SdkManagerCli.java:523)
    at com.android.sdklib.tool.SdkManagerCli.installPackages(SdkManagerCli.java:357)
    at com.android.sdklib.tool.SdkManagerCli.run(SdkManagerCli.java:147)
    at com.android.sdklib.tool.SdkManagerCli.main(SdkManagerCli.java:119)
    at com.android.sdklib.tool.SdkManagerCli.main(SdkManagerCli.java:93)
 
Last edited:

Peter Simpson

Expert
Licensed User
Longtime User
Upvote 0

cenyu

Active Member
Licensed User
Longtime User
Thanks Peter,
but still having this error...I have latest Java and follow the instructions from Erel but without success.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
then i guess you did something wrong.

Let´s start with some infos:
- You are using which B4A Version? <7.8 or 7.8+?
- You are using which JAVA Version exactly?
- You are using which Version of the SDK-Manager?
- You are not pointing the SDK Manager to a Android Studio SDK. You did download a new Set with the SDK-Manager?
- You did set the Path in the IDE to the right (new downloaded) SDK; Tools-Configure Paths?
 
Last edited:
Upvote 0

cenyu

Active Member
Licensed User
Longtime User
Hi DonManfred,

I'm using B4A ver 7.80 trial
jdk1.8.0_152
I am using built in SDK MANAGER into B4A 7.80 version
I am pointing to sdkmanager.exe from command line tools sdk-tools-windows-3859397.zip
I put the right path into environment variables

I hope this info will help :)
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I am pointing to sdkmanager.exe
Here is the problem. This tool is no longer supported by Android.

This is the relevant Tutorial Installation steps.
https://www.b4x.com/b4a.html#installation

3. B4A
  • Download B4A Trial Version
  • Open B4A.
  • Choose Tools > Configure Paths.
  • Set the path to "javac.exe" if it is empty (C:\Program Files\Java\jdk1.8.0_102\bin\javac.exe).
  • Click on Open Sdk Manager button.
  • Set the path to "sdkmanager.bat" (C:\Android\tools\bin\sdkmanager.bat) and install all recommended items.
  • Read and accept the licenses when asked for.
  • Return to B4A and set the path to "android.jar" (C:\Android\platforms\android-27\android.jar).
 
Upvote 0
Top