Uitenhage Member Licensed User Longtime User Jan 31, 2019 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Jan 31, 2019 #2 You can download a "ready to run" SDK: https://www.b4x.com/android/forum/threads/99780/#content This will help you get started. Please run the SDK source code with B4J and post the full error message: https://www.b4x.com/android/forum/threads/b4a-sdk-manager-source-code.91995/ Upvote 0
You can download a "ready to run" SDK: https://www.b4x.com/android/forum/threads/99780/#content This will help you get started. Please run the SDK source code with B4J and post the full error message: https://www.b4x.com/android/forum/threads/b4a-sdk-manager-source-code.91995/
Uitenhage Member Licensed User Longtime User Jan 31, 2019 #3 Thanks for the quick response. Here is the log from B4J: Attachments B4J Error Log.txt B4J Error Log.txt 375.4 KB · Views: 440 Upvote 0
DonManfred Expert Licensed User Longtime User Jan 31, 2019 #4 Uitenhage said: Here is the log from B4J Click to expand... java.net.ConnectException: Failed to connect to dl.google.com/216.58.216.206:443 Click to expand... Looks like you are not able to download from google-server. Are you able to download this xml from google? https://dl.google.com/dl/android/maven2/master-index.xml Upvote 0
Uitenhage said: Here is the log from B4J Click to expand... java.net.ConnectException: Failed to connect to dl.google.com/216.58.216.206:443 Click to expand... Looks like you are not able to download from google-server. Are you able to download this xml from google? https://dl.google.com/dl/android/maven2/master-index.xml
Uitenhage Member Licensed User Longtime User Feb 3, 2019 #5 DonManfred said: Looks like you are not able to download from google-server. Are you able to download this xml from google? https://dl.google.com/dl/android/maven2/master-index.xml Click to expand... 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? Last edited: Feb 3, 2019 Upvote 0
DonManfred said: Looks like you are not able to download from google-server. Are you able to download this xml from google? https://dl.google.com/dl/android/maven2/master-index.xml Click to expand... 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?
Erel B4X founder Staff member Licensed User Longtime User Feb 3, 2019 #6 Uitenhage said: Could this have any bearing? Click to expand... It is possible. Have you tried the ready to run SDK? Upvote 0
Uitenhage said: Could this have any bearing? Click to expand... It is possible. Have you tried the ready to run SDK?
Uitenhage Member Licensed User Longtime User Feb 3, 2019 #7 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
Erel, yes, the ready-to-run sdk does install & let me develop apps but I still cannot update the sdk with the SDKManager.
Erel B4X founder Staff member Licensed User Longtime User Feb 4, 2019 #8 After looking at the logs, it does seem to be a network error. It is not related to the user name. Maybe the firewall or anti virus block the connection. Upvote 0
After looking at the logs, it does seem to be a network error. It is not related to the user name. Maybe the firewall or anti virus block the connection.
Uitenhage Member Licensed User Longtime User Feb 4, 2019 #9 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
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.
Erel B4X founder Staff member Licensed User Longtime User Feb 5, 2019 #10 The error logs in post #3 do not match the error message from the first post. Which one do you now see? Upvote 0
The error logs in post #3 do not match the error message from the first post. Which one do you now see?
Uitenhage Member Licensed User Longtime User Feb 5, 2019 #11 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
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.
Erel B4X founder Staff member Licensed User Longtime User Feb 5, 2019 #12 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" Upvote 0
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"
Uitenhage Member Licensed User Longtime User Feb 6, 2019 #13 I made the change you suggested. The process seems to complete successfully. I have attached the new logfile too. Code: Copy 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 B4J Error Log - 2.txt 47.5 KB · Views: 419 Upvote 0
I made the change you suggested. The process seems to complete successfully. I have attached the new logfile too. Code: Copy 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
Erel B4X founder Staff member Licensed User Longtime User Feb 7, 2019 #14 Are you able to install the components? Upvote 0
Uitenhage Member Licensed User Longtime User Feb 15, 2019 #15 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
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.