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\
Yes! It arrives almost instantly. The error that appears in the message box announcing the error shows a truncated path. My user id (and therefore subtree under C:\Users) includes both a space and an apostrophe. Could this have any bearing?
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!
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.
It is not clear to me when this error happens: Error: Error: Could not find or load main class O'Donnell\AppData\Local\Temp\
As there is no stack trace it probably happens inside the Android SDK tools.
1. Create a folder named C:\temp
2. Find SetEnvironment sub and change File.DirTemp with "c:\temp"
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