Android Question AVD Manager - device definition not found

Dave O

Well-Known Member
Licensed User
Longtime User
The B4A SDK Manager works fine for me, but when I open the AVD manager, no devices are shown in the list.

When I try to create an AVD (regardless of the settings I choose), I get a "device definition not found" error.

(In Android Studio, I can open the AVD manager and start emulators just fine, but I'd really like to be able to do it directly from B4A.)
 

Jaames

Active Member
Licensed User
Longtime User
It seems that it works now, no error from the OP, and from the B4A AVDManager I can see in log that it is creating device, but no device appear in "Installed AVDs"



DataFolder: C:\Users\james\AppData\Roaming\B4ASdkManager
Java Path: C:\Program Files\Java\jdk1.8.0_181\jre
******** avd **************
Parsing D:\Android\sdk\build-tools\27.0.1\package.xmlParsing D:\Android\sdk\emulator\package.xmlParsing D:\Android\sdk\extras\google\usb_driver\package.xmlParsing D:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\package.xmlParsing D:\Android\sdk\patcher\v4\package.xmlParsing D:\Android\sdk\platform-tools\package.xmlParsing D:\Android\sdk\platforms\android-24\package.xmlParsing D:\Android\sdk\platforms\android-27\package.xmlParsing D:\Android\sdk\platforms\android-28\package.xmlParsing D:\Android\sdk\system-images\android-24\default\x86\package.xmlParsing D:\Android\sdk\system-images\android-27\google_apis_playstore\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\default\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\default\x86_64\package.xmlParsing D:\Android\sdk\system-images\android-28\google_apis_playstore\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\google_apis_playstore\x86_64\package.xmlParsing D:\Android\sdk\too...
Name: 4in_Phone_Platform_24_default
Device: 4in WVGA (Nexus S) (Generic)
Path: D:\Android\sdk\B4AEmulator\4in_Phone_Platform_24_default
Target:
Based on: Android 7.0 (Nougat) Tag/ABI: default/x86
Skin: WVGA800
Sdcard: 256M
---------
Name: 4in_Phone_Platform_27_google_apis_playstore
Device: 4in WVGA (Nexus S) (Generic)
Path: D:\Android\sdk\B4AEmulator\4in_Phone_Platform_27_google_apis_playstore
Target: Google Play (Google Inc.)
Based on: Android API 27 Tag/ABI: google_apis_playstore/x86
Skin: WVGA800
Sdcard: 256M
******** device **************
Parsing D:\Android\sdk\build-tools\27.0.1\package.xmlParsing D:\Android\sdk\emulator\package.xmlParsing D:\Android\sdk\extras\google\usb_driver\package.xmlParsing D:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\package.xmlParsing D:\Android\sdk\patcher\v4\package.xmlParsing D:\Android\sdk\platform-tools\package.xmlParsing D:\Android\sdk\platforms\android-24\package.xmlParsing D:\Android\sdk\platforms\android-27\package.xmlParsing D:\Android\sdk\platforms\android-28\package.xmlParsing D:\Android\sdk\system-images\android-24\default\x86\package.xmlParsing D:\Android\sdk\system-images\android-27\google_apis_playstore\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\default\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\default\x86_64\package.xmlParsing D:\Android\sdk\system-images\android-28\google_apis_playstore\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\google_apis_playstore\x86_64\package.xmlParsing D:\Android\sdk\too...
id: 0 or "tv_1080p"
Name: Android TV (1080p)
OEM : Google
Tag : android-tv
---------
id: 1 or "tv_720p"
Name: Android TV (720p)
OEM : Google
Tag : android-tv
---------
id: 2 or "wear_round"
Name: Android Wear Round
OEM : Google
Tag : android-wear
---------
id: 3 or "wear_round_chin_320_290"
Name: Android Wear Round Chin
OEM : Google
Tag : android-wear
---------
id: 4 or "wear_square"
Name: Android Wear Square
OEM : Google
Tag : android-wear
---------
id: 5 or "Galaxy Nexus"
Name: Galaxy Nexus
OEM : Google
---------
id: 6 or "Nexus 10"
Name: Nexus 10
OEM : Google
---------
id: 7 or "Nexus 4"
Name: Nexus 4
OEM : Google
---------
id: 8 or "Nexus 5"
Name: Nexus 5
OEM : Google
---------
id: 9 or "Nexus 5X"
Name: Nexus 5X
OEM : Google
---------
id: 10 or "Nexus 6"
Name: Nexus 6
OEM : Google
---------
id: 11 or "Nexus 6P"
Name: Nexus 6P
OEM : Google
---------
id: 12 or "Nexus 7 2013"
Name: Nexus 7
OEM : Google
---------
id: 13 or "Nexus 7"
Name: Nexus 7 (2012)
OEM : Google
---------
id: 14 or "Nexus 9"
Name: Nexus 9
OEM : Google
---------
id: 15 or "Nexus One"
Name: Nexus One
OEM : Google
---------
id: 16 or "Nexus S"
Name: Nexus S
OEM : Google
---------
id: 17 or "pixel"
Name: Pixel
OEM : Google
---------
id: 18 or "pixel_c"
Name: Pixel C
OEM : Google
---------
id: 19 or "pixel_xl"
Name: Pixel XL
OEM : Google
---------
id: 20 or "2.7in QVGA"
Name: 2.7" QVGA
OEM : Generic
---------
id: 21 or "2.7in QVGA slider"
Name: 2.7" QVGA slider
OEM : Generic
---------
id: 22 or "3.2in HVGA slider (ADP1)"
Name: 3.2" HVGA slider (ADP1)
OEM : Generic
---------
id: 23 or "3.2in QVGA (ADP2)"
Name: 3.2" QVGA (ADP2)
OEM : Generic
---------
id: 24 or "3.3in WQVGA"
Name: 3.3" WQVGA
OEM : Generic
---------
id: 25 or "3.4in WQVGA"
Name: 3.4" WQVGA
OEM : Generic
---------
id: 26 or "3.7 FWVGA slider"
Name: 3.7" FWVGA slider
OEM : Generic
---------
id: 27 or "3.7in WVGA (Nexus One)"
Name: 3.7" WVGA (Nexus One)
OEM : Generic
---------
id: 28 or "4in WVGA (Nexus S)"
Name: 4" WVGA (Nexus S)
OEM : Generic
---------
id: 29 or "4.65in 720p (Galaxy Nexus)"
Name: 4.65" 720p (Galaxy Nexus)
OEM : Generic
---------
id: 30 or "4.7in WXGA"
Name: 4.7" WXGA
OEM : Generic
---------
id: 31 or "5.1in WVGA"
Name: 5.1" WVGA
OEM : Generic
---------
id: 32 or "5.4in FWVGA"
Name: 5.4" FWVGA
OEM : Generic
---------
id: 33 or "7in WSVGA (Tablet)"
Name: 7" WSVGA (Tablet)
OEM : Generic
---------
id: 34 or "10.1in WXGA (Tablet)"
Name: 10.1" WXGA (Tablet)
OEM : Generic
***true:
******** avd **************
Parsing D:\Android\sdk\build-tools\27.0.1\package.xmlParsing D:\Android\sdk\emulator\package.xmlParsing D:\Android\sdk\extras\google\usb_driver\package.xmlParsing D:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\package.xmlParsing D:\Android\sdk\patcher\v4\package.xmlParsing D:\Android\sdk\platform-tools\package.xmlParsing D:\Android\sdk\platforms\android-24\package.xmlParsing D:\Android\sdk\platforms\android-27\package.xmlParsing D:\Android\sdk\platforms\android-28\package.xmlParsing D:\Android\sdk\system-images\android-24\default\x86\package.xmlParsing D:\Android\sdk\system-images\android-27\google_apis_playstore\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\default\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\default\x86_64\package.xmlParsing D:\Android\sdk\system-images\android-28\google_apis_playstore\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\google_apis_playstore\x86_64\package.xmlParsing D:\Android\sdk\too...
Name: 4in_Phone_Platform_24_default
Device: 4in WVGA (Nexus S) (Generic)
Path: D:\Android\sdk\B4AEmulator\4in_Phone_Platform_24_default
Target:
Based on: Android 7.0 (Nougat) Tag/ABI: default/x86
Skin: WVGA800
Sdcard: 256M
---------
Name: 4in_Phone_Platform_27_google_apis_playstore
Device: 4in WVGA (Nexus S) (Generic)
Path: D:\Android\sdk\B4AEmulator\4in_Phone_Platform_27_google_apis_playstore
Target: Google Play (Google Inc.)
Based on: Android API 27 Tag/ABI: google_apis_playstore/x86
Skin: WVGA800
Sdcard: 256M
---------
Name: 6in_Phone_Platform_28_google_apis_playstore
Device: 5.1in WVGA (Generic)
Path: D:\Android\sdk\B4AEmulator\6in_Phone_Platform_28_google_apis_playstore
Target: Google Play (Google Inc.)
Based on: Android API 28 Tag/ABI: google_apis_playstore/x86
Skin: WVGA854
Sdcard: 256M
******** device **************
Parsing D:\Android\sdk\build-tools\27.0.1\package.xmlParsing D:\Android\sdk\emulator\package.xmlParsing D:\Android\sdk\extras\google\usb_driver\package.xmlParsing D:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\package.xmlParsing D:\Android\sdk\patcher\v4\package.xmlParsing D:\Android\sdk\platform-tools\package.xmlParsing D:\Android\sdk\platforms\android-24\package.xmlParsing D:\Android\sdk\platforms\android-27\package.xmlParsing D:\Android\sdk\platforms\android-28\package.xmlParsing D:\Android\sdk\system-images\android-24\default\x86\package.xmlParsing D:\Android\sdk\system-images\android-27\google_apis_playstore\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\default\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\default\x86_64\package.xmlParsing D:\Android\sdk\system-images\android-28\google_apis_playstore\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\google_apis_playstore\x86_64\package.xmlParsing D:\Android\sdk\too...
id: 0 or "tv_1080p"
Name: Android TV (1080p)
OEM : Google
Tag : android-tv
---------
id: 1 or "tv_720p"
Name: Android TV (720p)
OEM : Google
Tag : android-tv
---------
id: 2 or "wear_round"
Name: Android Wear Round
OEM : Google
Tag : android-wear
---------
id: 3 or "wear_round_chin_320_290"
Name: Android Wear Round Chin
OEM : Google
Tag : android-wear
---------
id: 4 or "wear_square"
Name: Android Wear Square
OEM : Google
Tag : android-wear
---------
id: 5 or "Galaxy Nexus"
Name: Galaxy Nexus
OEM : Google
---------
id: 6 or "Nexus 10"
Name: Nexus 10
OEM : Google
---------
id: 7 or "Nexus 4"
Name: Nexus 4
OEM : Google
---------
id: 8 or "Nexus 5"
Name: Nexus 5
OEM : Google
---------
id: 9 or "Nexus 5X"
Name: Nexus 5X
OEM : Google
---------
id: 10 or "Nexus 6"
Name: Nexus 6
OEM : Google
---------
id: 11 or "Nexus 6P"
Name: Nexus 6P
OEM : Google
---------
id: 12 or "Nexus 7 2013"
Name: Nexus 7
OEM : Google
---------
id: 13 or "Nexus 7"
Name: Nexus 7 (2012)
OEM : Google
---------
id: 14 or "Nexus 9"
Name: Nexus 9
OEM : Google
---------
id: 15 or "Nexus One"
Name: Nexus One
OEM : Google
---------
id: 16 or "Nexus S"
Name: Nexus S
OEM : Google
---------
id: 17 or "pixel"
Name: Pixel
OEM : Google
---------
id: 18 or "pixel_c"
Name: Pixel C
OEM : Google
---------
id: 19 or "pixel_xl"
Name: Pixel XL
OEM : Google
---------
id: 20 or "2.7in QVGA"
Name: 2.7" QVGA
OEM : Generic
---------
id: 21 or "2.7in QVGA slider"
Name: 2.7" QVGA slider
OEM : Generic
---------
id: 22 or "3.2in HVGA slider (ADP1)"
Name: 3.2" HVGA slider (ADP1)
OEM : Generic
---------
id: 23 or "3.2in QVGA (ADP2)"
Name: 3.2" QVGA (ADP2)
OEM : Generic
---------
id: 24 or "3.3in WQVGA"
Name: 3.3" WQVGA
OEM : Generic
---------
id: 25 or "3.4in WQVGA"
Name: 3.4" WQVGA
OEM : Generic
---------
id: 26 or "3.7 FWVGA slider"
Name: 3.7" FWVGA slider
OEM : Generic
---------
id: 27 or "3.7in WVGA (Nexus One)"
Name: 3.7" WVGA (Nexus One)
OEM : Generic
---------
id: 28 or "4in WVGA (Nexus S)"
Name: 4" WVGA (Nexus S)
OEM : Generic
---------
id: 29 or "4.65in 720p (Galaxy Nexus)"
Name: 4.65" 720p (Galaxy Nexus)
OEM : Generic
---------
id: 30 or "4.7in WXGA"
Name: 4.7" WXGA
OEM : Generic
---------
id: 31 or "5.1in WVGA"
Name: 5.1" WVGA
OEM : Generic
---------
id: 32 or "5.4in FWVGA"
Name: 5.4" FWVGA
OEM : Generic
---------
id: 33 or "7in WSVGA (Tablet)"
Name: 7" WSVGA (Tablet)
OEM : Generic
---------
id: 34 or "10.1in WXGA (Tablet)"
Name: 10.1" WXGA (Tablet)
OEM : Generic

Loading local repository... [========= ] 25% Loading local repository... [========= ] 25% Fetch remote repository... [========= ] 25% Fetch remote repository... [========= ] 25% Fetch remote repository... [=======================================] 100% Fetch remote repository... Parsing D:\Android\sdk\build-tools\27.0.1\package.xmlParsing D:\Android\sdk\emulator\package.xmlParsing D:\Android\sdk\extras\google\usb_driver\package.xmlParsing D:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\package.xmlParsing D:\Android\sdk\patcher\v4\package.xmlParsing D:\Android\sdk\platform-tools\package.xmlParsing D:\Android\sdk\platforms\android-24\package.xmlParsing D:\Android\sdk\platforms\android-27\package.xmlParsing D:\Android\sdk\platforms\android-28\package.xmlParsing D:\Android\sdk\system-images\android-24\default\x86\package.xmlParsing D:\Android\sdk\system-images\android-27\google_apis_playstore\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\default\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\default\x86_64\package.xmlParsing D:\Android\sdk\system-images\android-28\google_apis_playstore\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\google_apis_playstore\x86_64\package.xmlParsing D:\Android\sdk\tools\package.xml
 
Upvote 0

Jaames

Active Member
Licensed User
Longtime User
And here is log with
B4X:
    Log("************** devices *********************")
    Log(Devices)
    Log("*****************")
    Log(screen)
uncommented

DataFolder: C:\Users\james\AppData\Roaming\B4ASdkManager
Java Path: C:\Program Files\Java\jdk1.8.0_181\jre
******** avd **************
Parsing D:\Android\sdk\build-tools\27.0.1\package.xmlParsing D:\Android\sdk\emulator\package.xmlParsing D:\Android\sdk\extras\google\usb_driver\package.xmlParsing D:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\package.xmlParsing D:\Android\sdk\patcher\v4\package.xmlParsing D:\Android\sdk\platform-tools\package.xmlParsing D:\Android\sdk\platforms\android-24\package.xmlParsing D:\Android\sdk\platforms\android-27\package.xmlParsing D:\Android\sdk\platforms\android-28\package.xmlParsing D:\Android\sdk\system-images\android-24\default\x86\package.xmlParsing D:\Android\sdk\system-images\android-27\google_apis_playstore\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\default\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\default\x86_64\package.xmlParsing D:\Android\sdk\system-images\android-28\google_apis_playstore\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\google_apis_playstore\x86_64\package.xmlParsing D:\Android\sdk\too...
Name: 4in_Phone_Platform_24_default
Device: 4in WVGA (Nexus S) (Generic)
Path: D:\Android\sdk\B4AEmulator\4in_Phone_Platform_24_default
Target:
Based on: Android 7.0 (Nougat) Tag/ABI: default/x86
Skin: WVGA800
Sdcard: 256M
---------
Name: 4in_Phone_Platform_27_google_apis_playstore
Device: 4in WVGA (Nexus S) (Generic)
Path: D:\Android\sdk\B4AEmulator\4in_Phone_Platform_27_google_apis_playstore
Target: Google Play (Google Inc.)
Based on: Android API 27 Tag/ABI: google_apis_playstore/x86
Skin: WVGA800
Sdcard: 256M
---------
Name: 6in_Phone_Platform_28_google_apis_playstore
Device: 5.1in WVGA (Generic)
Path: D:\Android\sdk\B4AEmulator\6in_Phone_Platform_28_google_apis_playstore
Target: Google Play (Google Inc.)
Based on: Android API 28 Tag/ABI: google_apis_playstore/x86
Skin: WVGA854
Sdcard: 256M
******** device **************
Parsing D:\Android\sdk\build-tools\27.0.1\package.xmlParsing D:\Android\sdk\emulator\package.xmlParsing D:\Android\sdk\extras\google\usb_driver\package.xmlParsing D:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\package.xmlParsing D:\Android\sdk\patcher\v4\package.xmlParsing D:\Android\sdk\platform-tools\package.xmlParsing D:\Android\sdk\platforms\android-24\package.xmlParsing D:\Android\sdk\platforms\android-27\package.xmlParsing D:\Android\sdk\platforms\android-28\package.xmlParsing D:\Android\sdk\system-images\android-24\default\x86\package.xmlParsing D:\Android\sdk\system-images\android-27\google_apis_playstore\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\default\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\default\x86_64\package.xmlParsing D:\Android\sdk\system-images\android-28\google_apis_playstore\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\google_apis_playstore\x86_64\package.xmlParsing D:\Android\sdk\too...
id: 0 or "tv_1080p"
Name: Android TV (1080p)
OEM : Google
Tag : android-tv
---------
id: 1 or "tv_720p"
Name: Android TV (720p)
OEM : Google
Tag : android-tv
---------
id: 2 or "wear_round"
Name: Android Wear Round
OEM : Google
Tag : android-wear
---------
id: 3 or "wear_round_chin_320_290"
Name: Android Wear Round Chin
OEM : Google
Tag : android-wear
---------
id: 4 or "wear_square"
Name: Android Wear Square
OEM : Google
Tag : android-wear
---------
id: 5 or "Galaxy Nexus"
Name: Galaxy Nexus
OEM : Google
---------
id: 6 or "Nexus 10"
Name: Nexus 10
OEM : Google
---------
id: 7 or "Nexus 4"
Name: Nexus 4
OEM : Google
---------
id: 8 or "Nexus 5"
Name: Nexus 5
OEM : Google
---------
id: 9 or "Nexus 5X"
Name: Nexus 5X
OEM : Google
---------
id: 10 or "Nexus 6"
Name: Nexus 6
OEM : Google
---------
id: 11 or "Nexus 6P"
Name: Nexus 6P
OEM : Google
---------
id: 12 or "Nexus 7 2013"
Name: Nexus 7
OEM : Google
---------
id: 13 or "Nexus 7"
Name: Nexus 7 (2012)
OEM : Google
---------
id: 14 or "Nexus 9"
Name: Nexus 9
OEM : Google
---------
id: 15 or "Nexus One"
Name: Nexus One
OEM : Google
---------
id: 16 or "Nexus S"
Name: Nexus S
OEM : Google
---------
id: 17 or "pixel"
Name: Pixel
OEM : Google
---------
id: 18 or "pixel_c"
Name: Pixel C
OEM : Google
---------
id: 19 or "pixel_xl"
Name: Pixel XL
OEM : Google
---------
id: 20 or "2.7in QVGA"
Name: 2.7" QVGA
OEM : Generic
---------
id: 21 or "2.7in QVGA slider"
Name: 2.7" QVGA slider
OEM : Generic
---------
id: 22 or "3.2in HVGA slider (ADP1)"
Name: 3.2" HVGA slider (ADP1)
OEM : Generic
---------
id: 23 or "3.2in QVGA (ADP2)"
Name: 3.2" QVGA (ADP2)
OEM : Generic
---------
id: 24 or "3.3in WQVGA"
Name: 3.3" WQVGA
OEM : Generic
---------
id: 25 or "3.4in WQVGA"
Name: 3.4" WQVGA
OEM : Generic
---------
id: 26 or "3.7 FWVGA slider"
Name: 3.7" FWVGA slider
OEM : Generic
---------
id: 27 or "3.7in WVGA (Nexus One)"
Name: 3.7" WVGA (Nexus One)
OEM : Generic
---------
id: 28 or "4in WVGA (Nexus S)"
Name: 4" WVGA (Nexus S)
OEM : Generic
---------
id: 29 or "4.65in 720p (Galaxy Nexus)"
Name: 4.65" 720p (Galaxy Nexus)
OEM : Generic
---------
id: 30 or "4.7in WXGA"
Name: 4.7" WXGA
OEM : Generic
---------
id: 31 or "5.1in WVGA"
Name: 5.1" WVGA
OEM : Generic
---------
id: 32 or "5.4in FWVGA"
Name: 5.4" FWVGA
OEM : Generic
---------
id: 33 or "7in WSVGA (Tablet)"
Name: 7" WSVGA (Tablet)
OEM : Generic
---------
id: 34 or "10.1in WXGA (Tablet)"
Name: 10.1" WXGA (Tablet)
OEM : Generic
************** devices *********************
(ArrayList) [[IsInitialized=true, Name=10.1" WXGA (Tablet), Id=34
], [IsInitialized=true, Name=2.7" QVGA, Id=20
], [IsInitialized=true, Name=2.7" QVGA slider, Id=21
], [IsInitialized=true, Name=3.2" HVGA slider (ADP1), Id=22
], [IsInitialized=true, Name=3.2" QVGA (ADP2), Id=23
], [IsInitialized=true, Name=3.3" WQVGA, Id=24
], [IsInitialized=true, Name=3.4" WQVGA, Id=25
], [IsInitialized=true, Name=3.7" FWVGA slider, Id=26
], [IsInitialized=true, Name=3.7" WVGA (Nexus One), Id=27
], [IsInitialized=true, Name=4" WVGA (Nexus S), Id=28
], [IsInitialized=true, Name=4.65" 720p (Galaxy Nexus), Id=29
], [IsInitialized=true, Name=4.7" WXGA, Id=30
], [IsInitialized=true, Name=5.1" WVGA, Id=31
], [IsInitialized=true, Name=5.4" FWVGA, Id=32
], [IsInitialized=true, Name=7" WSVGA (Tablet), Id=33
], [IsInitialized=true, Name=Android TV (1080p), Id=0
], [IsInitialized=true, Name=Android TV (720p), Id=1
], [IsInitialized=true, Name=Android Wear Round, Id=2
], [IsInitialized=true, Name=Android Wear Round Chin, Id=3
], [IsInitialized=true, Name=Android Wear Square, Id=4
], [IsInitialized=true, Name=Galaxy Nexus, Id=5
], [IsInitialized=true, Name=Nexus 10, Id=6
], [IsInitialized=true, Name=Nexus 4, Id=7
], [IsInitialized=true, Name=Nexus 5, Id=8
], [IsInitialized=true, Name=Nexus 5X, Id=9
], [IsInitialized=true, Name=Nexus 6, Id=10
], [IsInitialized=true, Name=Nexus 6P, Id=11
], [IsInitialized=true, Name=Nexus 7, Id=12
], [IsInitialized=true, Name=Nexus 7 (2012), Id=13
], [IsInitialized=true, Name=Nexus 9, Id=14
], [IsInitialized=true, Name=Nexus One, Id=15
], [IsInitialized=true, Name=Nexus S, Id=16
], [IsInitialized=true, Name=Pixel, Id=17
], [IsInitialized=true, Name=Pixel C, Id=18
], [IsInitialized=true, Name=Pixel XL, Id=19
]]
*****************
[IsInitialized=true, ScreenName=4" Phone (480 x 854, scale = 1.5), Skin=WVGA800
, Scale=240, DDName=4", EmulatorName=4in_Phone
]
***true:
******** avd **************
Parsing D:\Android\sdk\build-tools\27.0.1\package.xmlParsing D:\Android\sdk\emulator\package.xmlParsing D:\Android\sdk\extras\google\usb_driver\package.xmlParsing D:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\package.xmlParsing D:\Android\sdk\patcher\v4\package.xmlParsing D:\Android\sdk\platform-tools\package.xmlParsing D:\Android\sdk\platforms\android-24\package.xmlParsing D:\Android\sdk\platforms\android-27\package.xmlParsing D:\Android\sdk\platforms\android-28\package.xmlParsing D:\Android\sdk\system-images\android-24\default\x86\package.xmlParsing D:\Android\sdk\system-images\android-27\google_apis_playstore\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\default\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\default\x86_64\package.xmlParsing D:\Android\sdk\system-images\android-28\google_apis_playstore\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\google_apis_playstore\x86_64\package.xmlParsing D:\Android\sdk\too...
Name: 4in_Phone_Platform_24_default
Device: 4in WVGA (Nexus S) (Generic)
Path: D:\Android\sdk\B4AEmulator\4in_Phone_Platform_24_default
Target:
Based on: Android 7.0 (Nougat) Tag/ABI: default/x86
Skin: WVGA800
Sdcard: 256M
---------
Name: 4in_Phone_Platform_27_google_apis_playstore
Device: 4in WVGA (Nexus S) (Generic)
Path: D:\Android\sdk\B4AEmulator\4in_Phone_Platform_27_google_apis_playstore
Target: Google Play (Google Inc.)
Based on: Android API 27 Tag/ABI: google_apis_playstore/x86
Skin: WVGA800
Sdcard: 256M
---------
Name: 4in_Phone_Platform_28_default
Device: 4in WVGA (Nexus S) (Generic)
Path: D:\Android\sdk\B4AEmulator\4in_Phone_Platform_28_default
Target: Default Android System Image
Based on: Android API 28 Tag/ABI: default/x86
Skin: WVGA800
Sdcard: 256M
---------
Name: 6in_Phone_Platform_28_google_apis_playstore
Device: 5.1in WVGA (Generic)
Path: D:\Android\sdk\B4AEmulator\6in_Phone_Platform_28_google_apis_playstore
Target: Google Play (Google Inc.)
Based on: Android API 28 Tag/ABI: google_apis_playstore/x86
Skin: WVGA854
Sdcard: 256M
******** device **************
Parsing D:\Android\sdk\build-tools\27.0.1\package.xmlParsing D:\Android\sdk\emulator\package.xmlParsing D:\Android\sdk\extras\google\usb_driver\package.xmlParsing D:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\package.xmlParsing D:\Android\sdk\patcher\v4\package.xmlParsing D:\Android\sdk\platform-tools\package.xmlParsing D:\Android\sdk\platforms\android-24\package.xmlParsing D:\Android\sdk\platforms\android-27\package.xmlParsing D:\Android\sdk\platforms\android-28\package.xmlParsing D:\Android\sdk\system-images\android-24\default\x86\package.xmlParsing D:\Android\sdk\system-images\android-27\google_apis_playstore\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\default\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\default\x86_64\package.xmlParsing D:\Android\sdk\system-images\android-28\google_apis_playstore\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\google_apis_playstore\x86_64\package.xmlParsing D:\Android\sdk\too...
id: 0 or "tv_1080p"
Name: Android TV (1080p)
OEM : Google
Tag : android-tv
---------
id: 1 or "tv_720p"
Name: Android TV (720p)
OEM : Google
Tag : android-tv
---------
id: 2 or "wear_round"
Name: Android Wear Round
OEM : Google
Tag : android-wear
---------
id: 3 or "wear_round_chin_320_290"
Name: Android Wear Round Chin
OEM : Google
Tag : android-wear
---------
id: 4 or "wear_square"
Name: Android Wear Square
OEM : Google
Tag : android-wear
---------
id: 5 or "Galaxy Nexus"
Name: Galaxy Nexus
OEM : Google
---------
id: 6 or "Nexus 10"
Name: Nexus 10
OEM : Google
---------
id: 7 or "Nexus 4"
Name: Nexus 4
OEM : Google
---------
id: 8 or "Nexus 5"
Name: Nexus 5
OEM : Google
---------
id: 9 or "Nexus 5X"
Name: Nexus 5X
OEM : Google
---------
id: 10 or "Nexus 6"
Name: Nexus 6
OEM : Google
---------
id: 11 or "Nexus 6P"
Name: Nexus 6P
OEM : Google
---------
id: 12 or "Nexus 7 2013"
Name: Nexus 7
OEM : Google
---------
id: 13 or "Nexus 7"
Name: Nexus 7 (2012)
OEM : Google
---------
id: 14 or "Nexus 9"
Name: Nexus 9
OEM : Google
---------
id: 15 or "Nexus One"
Name: Nexus One
OEM : Google
---------
id: 16 or "Nexus S"
Name: Nexus S
OEM : Google
---------
id: 17 or "pixel"
Name: Pixel
OEM : Google
---------
id: 18 or "pixel_c"
Name: Pixel C
OEM : Google
---------
id: 19 or "pixel_xl"
Name: Pixel XL
OEM : Google
---------
id: 20 or "2.7in QVGA"
Name: 2.7" QVGA
OEM : Generic
---------
id: 21 or "2.7in QVGA slider"
Name: 2.7" QVGA slider
OEM : Generic
---------
id: 22 or "3.2in HVGA slider (ADP1)"
Name: 3.2" HVGA slider (ADP1)
OEM : Generic
---------
id: 23 or "3.2in QVGA (ADP2)"
Name: 3.2" QVGA (ADP2)
OEM : Generic
---------
id: 24 or "3.3in WQVGA"
Name: 3.3" WQVGA
OEM : Generic
---------
id: 25 or "3.4in WQVGA"
Name: 3.4" WQVGA
OEM : Generic
---------
id: 26 or "3.7 FWVGA slider"
Name: 3.7" FWVGA slider
OEM : Generic
---------
id: 27 or "3.7in WVGA (Nexus One)"
Name: 3.7" WVGA (Nexus One)
OEM : Generic
---------
id: 28 or "4in WVGA (Nexus S)"
Name: 4" WVGA (Nexus S)
OEM : Generic
---------
id: 29 or "4.65in 720p (Galaxy Nexus)"
Name: 4.65" 720p (Galaxy Nexus)
OEM : Generic
---------
id: 30 or "4.7in WXGA"
Name: 4.7" WXGA
OEM : Generic
---------
id: 31 or "5.1in WVGA"
Name: 5.1" WVGA
OEM : Generic
---------
id: 32 or "5.4in FWVGA"
Name: 5.4" FWVGA
OEM : Generic
---------
id: 33 or "7in WSVGA (Tablet)"
Name: 7" WSVGA (Tablet)
OEM : Generic
---------
id: 34 or "10.1in WXGA (Tablet)"
Name: 10.1" WXGA (Tablet)
OEM : Generic
 
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
If you use current SDK (sdk-tools-windows-4333796.zip) and B4A 8.30, try to do following
1) Create subfolder tools_plus inside your SDK-folder (D:\Android\sdk ?)
2) Copy package.xml from subfolder tools to subfolder tools_plus. Exactly copy, do not move.

Strange, but AVD-manager begins to work. Looks like a small bug.
 
Last edited:
Upvote 0

Jaames

Active Member
Licensed User
Longtime User
You are correct, I tried that and devices appeared , thanks for sharing..
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I'm not sure that it is required. How did you find it?

I've just tried it with sdk-tools-windows-4333796. It seems like the first AVD created is missing. However if you create more AVDs then they appear.
 
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
I found this partly by accident. I remembered that AVD manager worked with previous sdk-tools release. So I decided to compare two folders - with old and new sdk-tools. All changes were expected (in package.xml files, and in tools subfolders). In one moment new SDK folder included additional subfolder (tools_old). And this variant worked. I removed tools_old. AVD manager doesn't work. All the rest was simple.
 
Last edited:
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
I found a reason of troubles.

I took SDKManager 3.28 source code (posted in this topic) and added one line only in AVDManager.Bas
B4X:
            If (InAvailable = False) And (Command = "avd") And (line.StartsWith("    Name:")) Then InAvailable = True
right before line #188
B4X:
            If line.StartsWith("Available") Then
Of course, I also commented Log statements.

Now works without any changes in B4A SDK folder.
 
Upvote 0

Jaames

Active Member
Licensed User
Longtime User
This is output with "tools_plus" folder
******** avd **************
Warning: Observed package id 'tools' in inconsistent location 'D:\Android\sdk\tools_plus' (Expected 'D:\Android\sdk\tools')
Warning: Already observed package id 'tools' in 'D:\Android\sdk\tools'. Skipping duplicate at 'D:\Android\sdk\tools_plus'
Parsing D:\Android\sdk\build-tools\27.0.1\package.xmlParsing D:\Android\sdk\emulator\package.xmlParsing D:\Android\sdk\extras\google\usb_driver\package.xmlParsing D:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\package.xmlParsing D:\Android\sdk\patcher\v4\package.xmlParsing D:\Android\sdk\platform-tools\package.xmlParsing D:\Android\sdk\platforms\android-24\package.xmlParsing D:\Android\sdk\platforms\android-27\package.xmlParsing D:\Android\sdk\platforms\android-28\package.xmlParsing D:\Android\sdk\system-images\android-24\default\x86\package.xmlParsing D:\Android\sdk\system-images\android-27\google_apis_playstore\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\default\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\default\x86_64\package.xmlParsing D:\Android\sdk\system-images\android-28\google_apis_playstore\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\google_apis_playstore\x86_64\package.xmlParsing D:\Android\sdk\too...
Warning: Already observed package id 'tools' in 'D:\Android\sdk\tools'. Skipping duplicate at 'D:\Android\sdk\tools_plus'
Available Android Virtual Devices:

And this is without that folder (deleted folder completely)
All this is for the "sdk-tools-windows-4333796" version of sdk
******** avd **************
Parsing D:\Android\sdk\build-tools\27.0.1\package.xmlParsing D:\Android\sdk\emulator\package.xmlParsing D:\Android\sdk\extras\google\usb_driver\package.xmlParsing D:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\package.xmlParsing D:\Android\sdk\patcher\v4\package.xmlParsing D:\Android\sdk\platform-tools\package.xmlParsing D:\Android\sdk\platforms\android-24\package.xmlParsing D:\Android\sdk\platforms\android-27\package.xmlParsing D:\Android\sdk\platforms\android-28\package.xmlParsing D:\Android\sdk\system-images\android-24\default\x86\package.xmlParsing D:\Android\sdk\system-images\android-27\google_apis_playstore\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\default\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\default\x86_64\package.xmlParsing D:\Android\sdk\system-images\android-28\google_apis_playstore\x86\package.xmlParsing D:\Android\sdk\system-images\android-28\google_apis_playstore\x86_64\package.xmlParsing D:\Android\sdk\too...

Also one observation , no matter how you name folder "tools_plus", i named my "tools_however" and AvdList works, devices appeared.

But I have another problem now, with version 3.27 or with Source one 3.28, no matter if extra "tools_****" folder exists or not, not sure if it is related to this topic.
 
Last edited:
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
The situation with "Available Android Virtual Devices" is clear (can absent). If so, my additional statement allows to fix a problem.

ArrayIndexOutOfBoundsException happens on my PC also. Sometimes. Last time - yesterday. Re-install helps, but takes a long time (because I install system images for AVDs). I didn't analyze this problem, because we do not have source code. But now we can
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…