Android Question B4A SDKManager error

Uitenhage

Member
Licensed User
I am attempting to update the SDK. But the Sdk Manager throws this error: "Error: Error: Could not find or load main class O'Donnell\AppData\Local\Temp\"

I think it is truncating the path C:\Users\Jim O'Donnell\AppData\Local\Temp\

What Can I do?

Thanks,

Jim
 

DonManfred

Expert
Licensed User
Upvote 0

Uitenhage

Member
Licensed User
Last edited:
Upvote 0

Uitenhage

Member
Licensed User
Erel, yes, the ready-to-run sdk does install & let me develop apps but I still cannot update the sdk with the SDKManager.
 
Upvote 0

Uitenhage

Member
Licensed User
I tried disabling both of them alone and together but no luck. I can't find anything that seems relevant in the Event logs. Anyone have any ideas of where I should be looking? Any input is appreciated!

Thanks.
 
Upvote 0

Uitenhage

Member
Licensed User
The message in post #1 is the text in a messagebox produced by the SDK Manager. The logs are from the B4J execution of the SDK Manager which also produced the messagebox.
 
Upvote 0

Uitenhage

Member
Licensed User
I made the change you suggested. The process seems to complete successfully. I have attached the new logfile too.

B4X:
Public Sub SetEnvironment(s As Shell)
    Dim PathToTemp As String = File.DirTemp
   
    PathToTemp = "c:\temp"
   
    s.SetEnvironmentVariables(CreateMap("JAVA_HOME": FindJava, _
        "JAVA_OPTS": $"-Djava.io.tmpdir=${PathToTemp}"$ & AdditionalJavaOpts))
End Sub
 

Attachments

  • B4J Error Log - 2.txt
    47.5 KB · Views: 74
Upvote 0

Uitenhage

Member
Licensed User
I have used the Ready-To-Run and done manual downloads and copies. B4A compiles working apps butI still cannot use the SDKManager from B4A.
 
Upvote 0
Top