Bug? [FIXED] GUI SDK Manager

lemonisdead

Well-Known Member
Licensed User
Longtime User
Hello,
Don't know if it is important or not. Version 2.21

Info: Preparing "Install Android SDK Platform-Tools (revision: 26.0.0)".
Warning: Observed package id 'system-images;android-25;google_apis;arm64-v8a' in inconsistent location 'C:\SDK\system-images\android-25\google_apis\arm64-v8a.delete' (Expected 'C:\SDK\system-images\android-25\google_apis\arm64-v8a')
Warning: Observed package id 'system-images;android-25;google_apis;arm64-v8a' in inconsistent location 'C:\SDK\system-images\android-25\google_apis\arm64-v8a.delete' (Expected 'C:\SDK\system-images\android-25\google_apis\arm64-v8a')

Thanks
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
Hello @Erel
I am sorry to come on back to this but since that error, I get a java.lang.NullPointerException while trying to recover the already created AVD
Uninstalling / Reinstalling the GUI SDK Manager doesn't solve, deleting the SDK folder either.
For information only ~ Windows 10 Pro 64 bits (if it can help). No error in B4J's logs though.
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
Thanks. Here is the screenshot
error1.png




and below the full logs
C:\Users\svann\AppData\Local\Temp\
DataFolder: C:\Users\svann\AppData\Roaming\B4ASdkManager
build-tools;25.0.3
emulator
extras;android;m2repository
extras;google;m2repository
extras;google;usb_driver
extras;intel;Hardware_Accelerated_Execution_Manager
patcher;v4
platform-tools
platforms;android-24
platforms;android-25
platforms;android-26
system-images;android-24;default;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;arm64-v8a
system-images;android-25;google_apis;armeabi-v7a
system-images;android-25;google_apis;x86
system-images;android-25;google_apis;x86_64
system-images;android-26;android-tv;x86
system-images;android-26;android-wear;x86
system-images;android-26;google_apis;x86
system-images;android-26;google_apis_playstore;x86
tools
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
It doesn't crash in Debug mode and nor in Release. And as usual I had compiled it in Release obfuscated. Thanks it is fixed by compiling in Release mode.

For the report, here is the error in the logs
avdmanager$ResumableSub_AVDList.resume (java line: 292)
java.lang.NullPointerException
at anywheresoftware.b4a.objects.collections.List.sortList(List.java:181)
at anywheresoftware.b4a.objects.collections.List.SortType(List.java:169)
at b4j.example.avdmanager$ResumableSub_AVDList.resume(avdmanager.java:292)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:135)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:84)
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
This is expected.
The sub name that parses each item is passed to AVDList:
B4X:
AVDList("avd", AVDs, "ParseItem")
AVDList("device", Devices, "ParseDeviceItem") 
'later called with:
CallSub3(Me, ParserSub, index, lines)

You need to add underscore to both ParseItem and ParseDeviceItem subs in order to make it work in obfuscation release (which is not important here as the source code is available anyway).
 
Top