Android Tutorial GUI SDK Manager for newer versions of Android tools

Status
Not open for further replies.
Edit: If you are using B4A v7.8+ then a newer version of B4A Sdk Manager is preinstalled. Follow these instructions instead: https://www.b4x.com/b4a.html#installation

The GUI interface of Android SDK Manager has been removed in the latest version of Android SDK.
It was replaced with a command line tool named sdkmanager.bat.

Most developers, including new B4A developers, still use a version which does include the GUI interface, as the B4A download page points to an older version.
You can continue to use the currently installed Android tools.

A custom tool named B4A SDK Manager is provided as an alternative for developers who like to upgrade:

SS-2017-06-06_12.53.22.png


Installation instructions:

1. Download the latest sdk tools: https://developer.android.com/studio/index.html#command-tools
2. Create a folder for Android SDK. Don't put it under Program Files as it is a restricted folder. C:\android-sdk is a good option.
3. Unzip the sdk tools and copy the tools library to android sdk folder. It should look similar to:

SS-2017-05-29_15.44.54.png


4. Download B4ASdkManager.jar and double click on it. It requires Java 8u40+ to be installed.
5. Click on the open folder button and select sdkmanager.bat. It will be under <sdk path>\tools\bin
6. Install all recommended items. It can take a few minutes or more.
Licenses agreements will be printed. Read them and approve.
7. Don't forget to update B4A IDE to use the new SDK (Tools - Configure Paths - android.jar).

Next tutorial: AVD Manager / Emulator

The B4J source code is attached. It depends on jShell v1.5+.

Android SDK currently doesn't support Java 9. Make sure that B4A is configured to use Java 8 (Tools - Configure Paths).
 

Attachments

  • B4A-SdkManager-Source.zip
    63.3 KB · Views: 5,018
Last edited:

jimmyF

Active Member
Licensed User
Longtime User
Works just fine now! :)
 

DX94

New Member
Hello, I am trying to port the tool to linux, As far as I reached it finds sdkmanager but now returns an error saying "Error: bash: /c: No such file or directory"

found the code the error comes from in CreateSdkManagerExec, and have a question
What is that "/c" for?
B4X:
allArgs.AddAll(Array("/c", txtPathToSdkManager.Text, "--verbose"))
 

jimmyF

Active Member
Licensed User
Longtime User
upload_2017-9-28_8-55-38.png
 

jimmyF

Active Member
Licensed User
Longtime User
Yes, it did previously work.
In the code:
Log: Error occurred on line: 301 (Main)
Log: java.lang.RuntimeException: Object should first be initialized (List).

So I add code to initialize and the next error is as follows:

Log: Error occurred on line: 337 (Main)
Log: java.lang.ArrayIndexOutOfBoundsException: 1278

I tried to change the upper bound of the index but that failed to correct the problem.
 

jimmyF

Active Member
Licensed User
Longtime User
Waiting for debugger to connect...
Program started.
DataFolder: C:\Users\James.SEF2\AppData\Roaming\B4ASdkManager
Java Path: C:\Program Files\Java\jdk1.8.0_131
Loading package information...
Loading local repository...
Info: Parsing E:\Android\sdk\add-ons\addon-google_apis-google-19\package.xml
Info: Parsing E:\Android\sdk\add-ons\addon-google_apis-google-24\package.xml
Info: Parsing E:\Android\sdk\build-tools\25.0.0\package.xml
Info: Parsing E:\Android\sdk\build-tools\25.0.1\package.xml
Info: Parsing E:\Android\sdk\build-tools\25.0.2\package.xml
Info: Parsing E:\Android\sdk\build-tools\25.0.3\package.xml
Info: Parsing E:\Android\sdk\build-tools\26.0.0\package.xml
Info: Parsing E:\Android\sdk\build-tools\26.0.1\package.xml
Info: Parsing E:\Android\sdk\cmake\3.6.3155560\package.xml
Info: Parsing E:\Android\sdk\cmake\3.6.4111459\package.xml
Info: Parsing E:\Android\sdk\docs\package.xml
Info: Parsing E:\Android\sdk\emulator\package.xml
Info: Parsing E:\Android\sdk\extras\android\gapid\3\package.xml
Info: Parsing E:\Android\sdk\extras\android\m2repository\package.xml
Info: Parsing E:\Android\sdk\extras\google\auto\package.xml
Info: Parsing E:\Android\sdk\extras\google\google_play_services\package.xml
Info: Parsing E:\Android\sdk\extras\google\instantapps\package.xml
Info: Parsing E:\Android\sdk\extras\google\m2repository\package.xml
Info: Parsing E:\Android\sdk\extras\google\market_apk_expansion\package.xml
Info: Parsing E:\Android\sdk\extras\google\market_licensing\package.xml
Info: Parsing E:\Android\sdk\extras\google\play_billing\package.xml
Info: Parsing E:\Android\sdk\extras\google\simulators\package.xml
Info: Parsing E:\Android\sdk\extras\google\usb_driver\package.xml
Info: Parsing E:\Android\sdk\extras\google\webdriver\package.xml
Info: Parsing E:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\package.xml
Info: Parsing E:\Android\sdk\extras\m2repository\com\android\support\constraint\constraint-layout-solver\1.0.1\package.xml
Info: Parsing E:\Android\sdk\extras\m2repository\com\android\support\constraint\constraint-layout-solver\1.0.2\package.xml
Info: Parsing E:\Android\sdk\extras\m2repository\com\android\support\constraint\constraint-layout\1.0.2\package.xml
Info: Parsing E:\Android\sdk\ndk-bundle\package.xml
Info: Parsing E:\Android\sdk\patcher\v1\package.xml
Info: Parsing E:\Android\sdk\patcher\v4\package.xml
Info: Parsing E:\Android\sdk\platform-tools\package.xml
Info: Parsing E:\Android\sdk\platforms\android-24\package.xml
Info: Parsing E:\Android\sdk\platforms\android-25\package.xml
Info: Parsing E:\Android\sdk\platforms\android-26\package.xml
Info: Parsing E:\Android\sdk\sources\android-24\package.xml
Info: Parsing E:\Android\sdk\sources\android-25\package.xml
Info: Parsing E:\Android\sdk\system-images\android-17\default\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-17\google_apis\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-18\google_apis\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-21\default\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-21\default\x86_64\package.xml
Info: Parsing E:\Android\sdk\system-images\android-21\google_apis\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-21\google_apis\x86_64\package.xml
Info: Parsing E:\Android\sdk\system-images\android-23\google_apis\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-23\google_apis\x86_64\package.xml
Info: Parsing E:\Android\sdk\system-images\android-24\default\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-24\default\x86_64\package.xml
Info: Parsing E:\Android\sdk\system-images\android-24\google_apis\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-24\google_apis\x86_64\package.xml
Info: Parsing E:\Android\sdk\system-images\android-24\google_apis_playstore\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-25\android-tv\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-25\android-wear\armeabi-v7a\package.xml
Info: Parsing E:\Android\sdk\system-images\android-25\android-wear\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-25\google_apis\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-25\google_apis\x86_64\package.xml
Info: Parsing E:\Android\sdk\system-images\android-26\google_apis\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-26\google_apis_playstore\x86\package.xml
Info: Parsing E:\Android\sdk\tools\package.xml
[========= ] 25% Loading local repository...
[========= ] 25% Fetch remote repository...
[========= ] 25% Fetch remote repository...

[========= ] 25% Fetch remote repository...
[========== ] 26% Fetch remote repository...
[=========== ] 29% Fetch remote repository...
[=========== ] 30% Fetch remote repository...
[============ ] 31% Fetch remote repository...
[============ ] 32% Fetch remote repository...
[============ ] 33% Fetch remote repository...
[============= ] 33% Fetch remote repository...
[============= ] 34% Fetch remote repository...
[============= ] 35% Fetch remote repository...
[============== ] 36% Fetch remote repository...
[============== ] 37% Fetch remote repository...
[============== ] 38% Fetch remote repository...
[=============== ] 38% Fetch remote repository...
[=============== ] 39% Fetch remote repository...
[=============== ] 40% Fetch remote repository...
[================ ] 41% Fetch remote repository...
[================ ] 42% Fetch remote repository...
[================ ] 43% Fetch remote repository...
[================= ] 43% Fetch remote repository...
[==================== ] 52% Fetch remote repository...
[======================= ] 60% Fetch remote repository...
[======================= ] 60% Computing updates...
[============================= ] 75% Computing updates...
[============================= ] 75% Computing updates...
[=======================================] 100% Computing updates...
Installed packages:
--------------------------------------
add-ons;addon-google_apis-google-19
add-ons;addon-google_apis-google-24
build-tools;25.0.0
build-tools;25.0.1
build-tools;25.0.2
build-tools;25.0.3
build-tools;26.0.0
build-tools;26.0.1
cmake;3.6.3155560
cmake;3.6.4111459
docs
emulator
extras;android;gapid;3
extras;android;m2repository
extras;google;auto
extras;google;google_play_services
extras;google;instantapps
extras;google;m2repository
extras;google;market_apk_expansion
extras;google;market_licensing
extras;google;play_billing
extras;google;simulators
extras;google;usb_driver
extras;google;webdriver
extras;intel;Hardware_Accelerated_Execution_Manager
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.1
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2
extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2
ndk-bundle
patcher;v1
patcher;v4
platform-tools
platforms;android-24
platforms;android-25
platforms;android-26
sources;android-24
sources;android-25
system-images;android-17;default;x86
system-images;android-17;google_apis;x86
system-images;android-18;google_apis;x86
system-images;android-21;default;x86
system-images;android-21;default;x86_64
system-images;android-21;google_apis;x86
system-images;android-21;google_apis;x86_64
system-images;android-23;google_apis;x86
system-images;android-23;google_apis;x86_64
system-images;android-24;default;x86
system-images;android-24;default;x86_64
system-images;android-24;google_apis;x86
system-images;android-24;google_apis;x86_64
system-images;android-24;google_apis_playstore;x86
system-images;android-25;android-tv;x86
system-images;android-25;android-wear;armeabi-v7a
system-images;android-25;android-wear;x86
system-images;android-25;google_apis;x86
system-images;android-25;google_apis;x86_64
system-images;android-26;google_apis;x86
system-images;android-26;google_apis_playstore;x86
tools
Available Packages:
--------------------------------------
add-ons;addon-google_apis-google-15
add-ons;addon-google_apis-google-16
add-ons;addon-google_apis-google-17
add-ons;addon-google_apis-google-18
add-ons;addon-google_apis-google-19
add-ons;addon-google_apis-google-21
add-ons;addon-google_apis-google-22
add-ons;addon-google_apis-google-23
add-ons;addon-google_apis-google-24
add-ons;addon-google_gdk-google-19
build-tools;19.1.0
build-tools;20.0.0
build-tools;21.1.2
build-tools;22.0.1
build-tools;23.0.1
build-tools;23.0.2
build-tools;23.0.3
build-tools;24.0.0
build-tools;24.0.1
build-tools;24.0.2
build-tools;24.0.3
build-tools;25.0.0
build-tools;25.0.1
build-tools;25.0.2
build-tools;25.0.3
build-tools;26.0.0
build-tools;26.0.1
build-tools;26.0.2
cmake;3.6.4111459
docs
emulator
patcher;v4
tools Revision 25.3
extras;android;gapid;1
extras;android;gapid;3
extras;android;m2repository
extras;google;auto
extras;google;google_play_services
patcher;v4
extras;google;instantapps
extras;google;m2repository
patcher;v4
extras;google;market_apk_expansion
extras;google;market_licensing
extras;google;simulators
extras;google;usb_driver
extras;google;webdriver
extras;intel;Hardware_Accelerated_Execution_Manager
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-alpha2
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-alpha3
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-alpha4
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-alpha5
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-alpha6
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-alpha7
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-alpha8
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-alpha9
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-beta1
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-beta2
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-beta3
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-beta4
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-beta5
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.1
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2
extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0
extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-alpha2
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-alpha2
extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-alpha3
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-alpha3
extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-alpha4
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-alpha4
extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-alpha5
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-alpha5
extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-alpha6
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-alpha6
extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-alpha7
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-alpha7
extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-alpha8
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-alpha8
extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-alpha9
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-alpha9
extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-beta1
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-beta1
extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-beta2
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-beta2
extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-beta3
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-beta3
extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-beta4
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-beta4
extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0-beta5
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.0-beta5
extras;m2repository;com;android;support;constraint;constraint-layout;1.0.1
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.1
extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2
lldb;2.0
lldb;2.1
lldb;2.2
patcher;v4
lldb;2.3
patcher;v4
ndk-bundle
patcher;v4
patcher;v4
platform-tools
platforms;android-10
platforms;android-11
platforms;android-12
platforms;android-13
platforms;android-14
platforms;android-15
platforms;android-16
platforms;android-17
platforms;android-18
platforms;android-19
platforms;android-20
platforms;android-21
platforms;android-22
platforms;android-23
platforms;android-24
platforms;android-25
platforms;android-26
platforms;android-7
platforms;android-8
platforms;android-9
sources;android-15
sources;android-16
sources;android-17
sources;android-18
sources;android-19
sources;android-20
sources;android-21
sources;android-22
sources;android-23
sources;android-24
sources;android-25
system-images;android-10;default;armeabi-v7a
system-images;android-10;default;x86
system-images;android-10;google_apis;armeabi-v7a
system-images;android-10;google_apis;x86
system-images;android-14;default;armeabi-v7a
system-images;android-15;default;armeabi-v7a
patcher;v4
system-images;android-15;default;mips
system-images;android-15;default;x86
system-images;android-15;google_apis;armeabi-v7a
system-images;android-15;google_apis;x86
system-images;android-16;default;armeabi-v7a
system-images;android-16;default;mips
system-images;android-16;default;x86
system-images;android-16;google_apis;armeabi-v7a
system-images;android-16;google_apis;x86
system-images;android-17;default;armeabi-v7a
patcher;v4
system-images;android-17;default;mips
system-images;android-17;default;x86
patcher;v4
system-images;android-17;google_apis;armeabi-v7a
system-images;android-17;google_apis;x86
system-images;android-18;default;armeabi-v7a
patcher;v4
system-images;android-18;default;x86
patcher;v4
system-images;android-18;google_apis;armeabi-v7a
system-images;android-18;google_apis;x86
system-images;android-19;default;armeabi-v7a
patcher;v4
system-images;android-19;default;x86
patcher;v4
system-images;android-19;google_apis;armeabi-v7a
patcher;v4
system-images;android-19;google_apis;x86
patcher;v4
system-images;android-21;android-tv;armeabi-v7a
system-images;android-21;android-tv;x86
system-images;android-21;default;armeabi-v7a
patcher;v4
system-images;android-21;default;x86
patcher;v4
system-images;android-21;default;x86_64
patcher;v4
system-images;android-21;google_apis;armeabi-v7a
patcher;v4
system-images;android-21;google_apis;x86
patcher;v4
system-images;android-21;google_apis;x86_64
patcher;v4
system-images;android-22;android-tv;armeabi-v7a
system-images;android-22;android-tv;x86
system-images;android-22;default;armeabi-v7a
patcher;v4
system-images;android-22;default;x86
patcher;v4
system-images;android-22;default;x86_64
patcher;v4
system-images;android-22;google_apis;armeabi-v7a
patcher;v4
system-images;android-22;google_apis;x86
patcher;v4
system-images;android-22;google_apis;x86_64
patcher;v4
system-images;android-23;android-tv;armeabi-v7a
system-images;android-23;android-tv;x86
patcher;v4
system-images;android-23;android-wear;armeabi-v7a
patcher;v4
system-images;android-23;android-wear;x86
patcher;v4
system-images;android-23;default;armeabi-v7a
patcher;v4
system-images;android-23;default;x86
patcher;v4
system-images;android-23;default;x86_64
patcher;v4
system-images;android-23;google_apis;armeabi-v7a
patcher;v4
system-images;android-23;google_apis;x86
patcher;v4
system-images;android-23;google_apis;x86_64
patcher;v4
system-images;android-24;android-tv;x86
patcher;v4
system-images;android-24;default;arm64-v8a
system-images;android-24;default;armeabi-v7a
patcher;v4
system-images;android-24;default;x86
patcher;v4
system-images;android-24;default;x86_64
patcher;v4
system-images;android-24;google_apis;arm64-v8a
patcher;v4
system-images;android-24;google_apis;armeabi-v7a
patcher;v4
system-images;android-24;google_apis;x86
patcher;v4
system-images;android-24;google_apis;x86_64
patcher;v4
system-images;android-24;google_apis_playstore;x86
patcher;v4
system-images;android-25;android-tv;x86
patcher;v4
system-images;android-25;android-wear;armeabi-v7a
patcher;v4
system-images;android-25;android-wear;x86
patcher;v4
system-images;android-25;google_apis;arm64-v8a
patcher;v4
system-images;android-25;google_apis;armeabi-v7a
patcher;v4
system-images;android-25;google_apis;x86
patcher;v4
system-images;android-25;google_apis;x86_64
patcher;v4
system-images;android-25;google_apis_playstore;x86
patcher;v4
system-images;android-26;android-tv;x86
emulator Revision 26.1.3
system-images;android-26;android-wear;x86
patcher;v4
system-images;android-26;google_apis;x86
emulator Revision 26.1.3
system-images;android-26;google_apis_playstore;x86
emulator Revision 26.1.3
tools
patcher;v4
emulator
platform-tools Revision 20
Available Updates:
--------------------------------------
ndk-bundle
Error occurred on line: 338 (Main)
java.lang.ArrayIndexOutOfBoundsException: 1278
at b4j.example.main._parseitem(main.java:1644)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:613)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:228)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:159)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:90)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:93)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:77)
at anywheresoftware.b4a.shell.DebugResumableSub$RemoteResumableSub.resume(DebugResumableSub.java:19)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:135)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:84)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:93)
at anywheresoftware.b4a.BA$3.run(BA.java:246)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:748)
 

jimmyF

Active Member
Licensed User
Longtime User
Done

Waiting for debugger to connect...
Program started.
DataFolder: C:\Users\James.SEF2\AppData\Roaming\B4ASdkManager
Java Path: C:\Program Files\Java\jdk1.8.0_131
Loading package information...
Loading local repository...
Info: Parsing E:\Android\sdk\add-ons\addon-google_apis-google-19\package.xml
Info: Parsing E:\Android\sdk\add-ons\addon-google_apis-google-24\package.xml
Info: Parsing E:\Android\sdk\build-tools\25.0.0\package.xml
Info: Parsing E:\Android\sdk\build-tools\25.0.1\package.xml
Info: Parsing E:\Android\sdk\build-tools\25.0.2\package.xml
Info: Parsing E:\Android\sdk\build-tools\25.0.3\package.xml
Info: Parsing E:\Android\sdk\build-tools\26.0.0\package.xml
Info: Parsing E:\Android\sdk\build-tools\26.0.1\package.xml
Info: Parsing E:\Android\sdk\cmake\3.6.3155560\package.xml
Info: Parsing E:\Android\sdk\cmake\3.6.4111459\package.xml
Info: Parsing E:\Android\sdk\docs\package.xml
Info: Parsing E:\Android\sdk\emulator\package.xml
Info: Parsing E:\Android\sdk\extras\android\gapid\3\package.xml
Info: Parsing E:\Android\sdk\extras\android\m2repository\package.xml
Info: Parsing E:\Android\sdk\extras\google\auto\package.xml
Info: Parsing E:\Android\sdk\extras\google\google_play_services\package.xml
Info: Parsing E:\Android\sdk\extras\google\instantapps\package.xml
Info: Parsing E:\Android\sdk\extras\google\m2repository\package.xml
Info: Parsing E:\Android\sdk\extras\google\market_apk_expansion\package.xml
Info: Parsing E:\Android\sdk\extras\google\market_licensing\package.xml
Info: Parsing E:\Android\sdk\extras\google\play_billing\package.xml
Info: Parsing E:\Android\sdk\extras\google\simulators\package.xml
Info: Parsing E:\Android\sdk\extras\google\usb_driver\package.xml
Info: Parsing E:\Android\sdk\extras\google\webdriver\package.xml
Info: Parsing E:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\package.xml
Info: Parsing E:\Android\sdk\extras\m2repository\com\android\support\constraint\constraint-layout-solver\1.0.1\package.xml
Info: Parsing E:\Android\sdk\extras\m2repository\com\android\support\constraint\constraint-layout-solver\1.0.2\package.xml
Info: Parsing E:\Android\sdk\extras\m2repository\com\android\support\constraint\constraint-layout\1.0.2\package.xml
Info: Parsing E:\Android\sdk\ndk-bundle\package.xml
Info: Parsing E:\Android\sdk\patcher\v1\package.xml
Info: Parsing E:\Android\sdk\patcher\v4\package.xml
Info: Parsing E:\Android\sdk\platform-tools\package.xml
Info: Parsing E:\Android\sdk\platforms\android-24\package.xml
Info: Parsing E:\Android\sdk\platforms\android-25\package.xml
Info: Parsing E:\Android\sdk\platforms\android-26\package.xml
Info: Parsing E:\Android\sdk\sources\android-24\package.xml
Info: Parsing E:\Android\sdk\sources\android-25\package.xml
Info: Parsing E:\Android\sdk\system-images\android-17\default\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-17\google_apis\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-18\google_apis\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-21\default\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-21\default\x86_64\package.xml
Info: Parsing E:\Android\sdk\system-images\android-21\google_apis\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-21\google_apis\x86_64\package.xml
Info: Parsing E:\Android\sdk\system-images\android-23\google_apis\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-23\google_apis\x86_64\package.xml
Info: Parsing E:\Android\sdk\system-images\android-24\default\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-24\default\x86_64\package.xml
Info: Parsing E:\Android\sdk\system-images\android-24\google_apis\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-24\google_apis\x86_64\package.xml
Info: Parsing E:\Android\sdk\system-images\android-24\google_apis_playstore\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-25\android-tv\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-25\android-wear\armeabi-v7a\package.xml
Info: Parsing E:\Android\sdk\system-images\android-25\android-wear\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-25\google_apis\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-25\google_apis\x86_64\package.xml
Info: Parsing E:\Android\sdk\system-images\android-26\google_apis\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-26\google_apis_playstore\x86\package.xml
Info: Parsing E:\Android\sdk\tools\package.xml
[========= ] 25% Loading local repository...
[========= ] 25% Fetch remote repository...
[========= ] 25% Fetch remote repository...

[========= ] 25% Fetch remote repository...
[========== ] 26% Fetch remote repository...
[=========== ] 29% Fetch remote repository...
[=========== ] 30% Fetch remote repository...
[============ ] 31% Fetch remote repository...
[============ ] 32% Fetch remote repository...
[============ ] 33% Fetch remote repository...
[============= ] 33% Fetch remote repository...
[============= ] 34% Fetch remote repository...
[============= ] 35% Fetch remote repository...
[============== ] 36% Fetch remote repository...
[============== ] 37% Fetch remote repository...
[============== ] 38% Fetch remote repository...
[=============== ] 38% Fetch remote repository...
[=============== ] 39% Fetch remote repository...
[=============== ] 40% Fetch remote repository...
[================ ] 41% Fetch remote repository...
[================ ] 42% Fetch remote repository...
[================ ] 43% Fetch remote repository...
[================= ] 43% Fetch remote repository...
[==================== ] 52% Fetch remote repository...
[======================= ] 60% Fetch remote repository...
[======================= ] 60% Computing updates...
[============================= ] 75% Computing updates...
[============================= ] 75% Computing updates...
[=======================================] 100% Computing updates...
Installed packages:
--------------------------------------
add-ons;addon-google_apis-google-19
Error occurred on line: 302 (Main)
java.lang.RuntimeException: Object should first be initialized (List).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:32)
at anywheresoftware.b4a.objects.collections.List.Add(List.java:64)
at b4j.example.main._parselistresult(main.java:1785)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:613)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:228)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:159)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:90)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:93)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:77)
at anywheresoftware.b4a.shell.DebugResumableSub$RemoteResumableSub.resume(DebugResumableSub.java:19)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:135)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:84)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:93)
at anywheresoftware.b4a.BA$3.run(BA.java:246)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:748)
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Thank you.
Might be an encoding issue.

Please change ParseListResult code to:
B4X:
Sub ParseListResult (StdOut As String)
   Dim lines() As String = Regex.Split2("\r\n", Regex.MULTILINE, StdOut)
   Dim index(1) As Int
   Dim CurrentMap As List
   Dim InAvailableItems As Boolean
   Do While index(0) < lines.Length
     Dim line As String = lines(index(0))
     If line.StartsWith("-------") Then
       Log(lines(index(0) - 1)) '<--- breakpoint here
       Select lines(index(0) - 1).Trim
         Case "Installed packages:"
           CurrentMap = InstalledItems
           InAvailableItems = False
         Case "Available Packages:"
           CurrentMap = AvailableItems
           InAvailableItems = True
         Case "Available Updates:"
           InAvailableItems = False
           CurrentMap = UpdateableItems
       End Select
     Else
       If line = "done" Then Exit
       If line.Length > 0 Then
         Dim c As String = line.CharAt(0)
         If c.ToUpperCase <> c Then
           Dim si As SdkItem = ParseItem(index, lines)
           If Not(InAvailableItems And IsInstalled(si, True)) Then
             If RecommendedSet.ContainsKey(si.Key) And InAvailableItems Then
               RecommendedItems.Add(si)
             Else
               CurrentMap.Add(si)
             End If
           End If
         End If
       End If
     End If
     index(0) = index(0) + 1
   Loop
End Sub

Click on F8 to let it continue step by step. Does it reach the correct case:
SS-2017-09-29_07.43.31.png

?

What is printed from this line:
Log(lines(index(0) - 1))

?
 

jimmyF

Active Member
Licensed User
Longtime User
If I stop and print that line only I get this:
Waiting for debugger to connect...
Program started.
DataFolder: C:\Users\James.SEF2\AppData\Roaming\B4ASdkManager
Java Path: C:\Program Files\Java\jdk1.8.0_131
[========= ] 25% Loading local repository...
[========= ] 25% Fetch remote repository...
[========= ] 25% Fetch remote repository...

[========= ] 25% Fetch remote repository...
[========== ] 26% Fetch remote repository...
[=========== ] 29% Fetch remote repository...
[=========== ] 30% Fetch remote repository...
[============ ] 31% Fetch remote repository...
[============ ] 32% Fetch remote repository...
[============ ] 33% Fetch remote repository...
[============= ] 33% Fetch remote repository...
[============= ] 34% Fetch remote repository...
[============= ] 35% Fetch remote repository...
[============== ] 36% Fetch remote repository...
[============== ] 37% Fetch remote repository...
[============== ] 38% Fetch remote repository...
[=============== ] 38% Fetch remote repository...
[=============== ] 39% Fetch remote repository...
[=============== ] 40% Fetch remote repository...
[================ ] 41% Fetch remote repository...
[================ ] 42% Fetch remote repository...
[================ ] 43% Fetch remote repository...
[================= ] 43% Fetch remote repository...
[==================== ] 52% Fetch remote repository...
[======================= ] 60% Fetch remote repository...
[======================= ] 60% Computing updates...
[============================= ] 75% Computing updates...
[============================= ] 75% Computing updates...
[=======================================] 100% Computing updates...
Installed packages:

Then if I continue from that line the result is as follows:

Error occurred on line: 342
java.lang.RuntimeException: Object should first be initialized (List).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:32)
at anywheresoftware.b4a.objects.collections.List.Add(List.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:657)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:234)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:159)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:90)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:93)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:77)
at anywheresoftware.b4a.shell.DebugResumableSub$RemoteResumableSub.resume(DebugResumableSub.java:19)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:135)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:84)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:93)
at anywheresoftware.b4a.BA$3.run(BA.java:246)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:748)
 

jimmyF

Active Member
Licensed User
Longtime User
Does it go to the correct case block?

No. It goes to the bottom of the loop.
B4X:
index(0) = index(0) + 1

You can add this code after line 279:
Code:
Dim s AsString = lines(index(0) - 1)
Log("s: " & s)
Log(s.Length)
Log(s = "Installed packages:")

And I get this:
Waiting for debugger to connect...
Program started.
DataFolder: C:\Users\James.SEF2\AppData\Roaming\B4ASdkManager
Java Path: C:\Program Files\Java\jdk1.8.0_131
s: [========= ] 25% Loading local repository...
[========= ] 25% Fetch remote repository...
[========= ] 25% Fetch remote repository...

[========= ] 25% Fetch remote repository...
[========== ] 26% Fetch remote repository...
[=========== ] 29% Fetch remote repository...
[=========== ] 30% Fetch remote repository...
[============ ] 31% Fetch remote repository...
[============ ] 32% Fetch remote repository...
[============ ] 33% Fetch remote repository...
[============= ] 33% Fetch remote repository...
[============= ] 34% Fetch remote repository...
[============= ] 35% Fetch remote repository...
[============== ] 36% Fetch remote repository...
[============== ] 37% Fetch remote repository...
[============== ] 38% Fetch remote repository...
[=============== ] 38% Fetch remote repository...
[=============== ] 39% Fetch remote repository...
[=============== ] 40% Fetch remote repository...
[================ ] 41% Fetch remote repository...
[================ ] 42% Fetch remote repository...
[================ ] 43% Fetch remote repository...
[================= ] 43% Fetch remote repository...
[==================== ] 52% Fetch remote repository...
[======================= ] 60% Fetch remote repository...
[======================= ] 60% Computing updates...
[============================= ] 75% Computing updates...
[============================= ] 75% Computing updates...
[=======================================] 100% Computing updates...
Installed packages:
2449
false

Then the error:
[========= ] 25% Loading local repository...
[========= ] 25% Fetch remote repository...
[========= ] 25% Fetch remote repository...

[========= ] 25% Fetch remote repository...
[========== ] 26% Fetch remote repository...
[=========== ] 29% Fetch remote repository...
[=========== ] 30% Fetch remote repository...
[============ ] 31% Fetch remote repository...
[============ ] 32% Fetch remote repository...
[============ ] 33% Fetch remote repository...
[============= ] 33% Fetch remote repository...
[============= ] 34% Fetch remote repository...
[============= ] 35% Fetch remote repository...
[============== ] 36% Fetch remote repository...
[============== ] 37% Fetch remote repository...
[============== ] 38% Fetch remote repository...
[=============== ] 38% Fetch remote repository...
[=============== ] 39% Fetch remote repository...
[=============== ] 40% Fetch remote repository...
[================ ] 41% Fetch remote repository...
[================ ] 42% Fetch remote repository...
[================ ] 43% Fetch remote repository...
[================= ] 43% Fetch remote repository...
[==================== ] 52% Fetch remote repository...
[======================= ] 60% Fetch remote repository...
[======================= ] 60% Computing updates...
[============================= ] 75% Computing updates...
[============================= ] 75% Computing updates...
[=======================================] 100% Computing updates...
Installed packages:
Error occurred on line: 307
java.lang.RuntimeException: Object should first be initialized (List).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:32)
at anywheresoftware.b4a.objects.collections.List.Add(List.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:657)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:234)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:159)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:90)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:93)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:77)
at anywheresoftware.b4a.shell.DebugResumableSub$RemoteResumableSub.resume(DebugResumableSub.java:19)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:135)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:84)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:93)
at anywheresoftware.b4a.BA$3.run(BA.java:246)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:748)
 

jimmyF

Active Member
Licensed User
Longtime User
Runs fine but the app log is as follows:
Loading package information... Loading local repository... Info: Parsing E:\Android\sdk\add-ons\addon-google_apis-google-19\package.xml
Info: Parsing E:\Android\sdk\add-ons\addon-google_apis-google-24\package.xml
Info: Parsing E:\Android\sdk\build-tools\25.0.0\package.xml
Info: Parsing E:\Android\sdk\build-tools\25.0.1\package.xml
Info: Parsing E:\Android\sdk\build-tools\25.0.2\package.xml
Info: Parsing E:\Android\sdk\build-tools\25.0.3\package.xml
Info: Parsing E:\Android\sdk\build-tools\26.0.0\package.xml
Info: Parsing E:\Android\sdk\build-tools\26.0.1\package.xml
Info: Parsing E:\Android\sdk\build-tools\26.0.2\package.xml
Info: Parsing E:\Android\sdk\cmake\3.6.3155560\package.xml
Info: Parsing E:\Android\sdk\cmake\3.6.4111459\package.xml
Info: Parsing E:\Android\sdk\docs\package.xml
Info: Parsing E:\Android\sdk\emulator\package.xml
Info: Parsing E:\Android\sdk\extras\android\gapid\3\package.xml
Info: Parsing E:\Android\sdk\extras\android\m2repository\package.xml
Info: Parsing E:\Android\sdk\extras\google\auto\package.xml
Info: Parsing E:\Android\sdk\extras\google\google_play_services\package.xml
Info: Parsing E:\Android\sdk\extras\google\instantapps\package.xml
Info: Parsing E:\Android\sdk\extras\google\m2repository\package.xml
Info: Parsing E:\Android\sdk\extras\google\market_apk_expansion\package.xml
Info: Parsing E:\Android\sdk\extras\google\market_licensing\package.xml
Info: Parsing E:\Android\sdk\extras\google\play_billing\package.xml
Info: Parsing E:\Android\sdk\extras\google\simulators\package.xml
Info: Parsing E:\Android\sdk\extras\google\usb_driver\package.xml
Info: Parsing E:\Android\sdk\extras\google\webdriver\package.xml
Info: Parsing E:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\package.xml
Info: Parsing E:\Android\sdk\extras\m2repository\com\android\support\constraint\constraint-layout-solver\1.0.1\package.xml
Info: Parsing E:\Android\sdk\extras\m2repository\com\android\support\constraint\constraint-layout-solver\1.0.2\package.xml
Info: Parsing E:\Android\sdk\extras\m2repository\com\android\support\constraint\constraint-layout\1.0.2\package.xml
Info: Parsing E:\Android\sdk\ndk-bundle\package.xml
Info: Parsing E:\Android\sdk\patcher\v1\package.xml
Info: Parsing E:\Android\sdk\patcher\v4\package.xml
Info: Parsing E:\Android\sdk\platform-tools\package.xml
Info: Parsing E:\Android\sdk\platforms\android-24\package.xml
Info: Parsing E:\Android\sdk\platforms\android-25\package.xml
Info: Parsing E:\Android\sdk\platforms\android-26\package.xml
Info: Parsing E:\Android\sdk\sources\android-24\package.xml
Info: Parsing E:\Android\sdk\sources\android-25\package.xml
Info: Parsing E:\Android\sdk\system-images\android-17\default\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-17\google_apis\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-18\google_apis\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-21\default\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-21\default\x86_64\package.xml
Info: Parsing E:\Android\sdk\system-images\android-21\google_apis\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-21\google_apis\x86_64\package.xml
Info: Parsing E:\Android\sdk\system-images\android-23\google_apis\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-23\google_apis\x86_64\package.xml
Info: Parsing E:\Android\sdk\system-images\android-24\default\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-24\default\x86_64\package.xml
Info: Parsing E:\Android\sdk\system-images\android-24\google_apis\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-24\google_apis\x86_64\package.xml
Info: Parsing E:\Android\sdk\system-images\android-24\google_apis_playstore\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-25\android-tv\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-25\android-wear\armeabi-v7a\package.xml
Info: Parsing E:\Android\sdk\system-images\android-25\android-wear\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-25\google_apis\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-25\google_apis\x86_64\package.xml
Info: Parsing E:\Android\sdk\system-images\android-26\google_apis\x86\package.xml
Info: Parsing E:\Android\sdk\system-images\android-26\google_apis_playstore\x86\package.xml
Info: Parsing E:\Android\sdk\tools\package.xml
[ ] 3% Loading local repository... [ ] 3% Fetch remote repository... [ ] 3% Fetch remote repository... [ ] 3% Fetch remote repository... [= ] 3% Fetch remote repository... [= ] 3% Fetch remote repository... [= ] 3% Fetch remote repository... [= ] 3% Fetch remote repository... [= ] 3% Fetch remote repository... [= ] 3% Fetch remote repository... [= ] 3% Fetch remote repository... [= ] 3% Fetch remote repository... [= ] 3% Fetch remote repository... [= ] 4% Fetch remote repository... [= ] 4% Fetch remote repository... [= ] 4% Fetch remote repository... [= ] 4% Fetch remote repository... [= ] 4% Fetch remote repository... [= ] 4% Fetch remote repository... [= ] 4% Fetch remote repository... [= ] 4% Fetch remote repository... [= ] 4% Fetch remote repository... [= ] 4% Fetch remote repository... [== ] 5% Fetch remote repository... [== ] 6% Fetch remote repository... [== ] 6% Computing updates... [=== ] 8% Computing updates... [=== ] 8% Computing updates... [=== ] 10% Computing updates...
Warning: File C:\Users\James.SEF2\.android\repositories.cfg could not be loaded.

Actually, the file C:\Users\James.SEF2\.android\repositories.cfg does not exist in that folder
 
Status
Not open for further replies.
Top