AssetStorage uses a ConcurrentHashMap internally to map asset paths to registered asset types. Since it makes use of the getOrDefault method, older Android devices might throw the following exception:
java.lang.NoSuchMethodError: No virtual method getOrDefault(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; in class Ljava/util/concurrent/ConcurrentHashMap; or its super classes (declaration of 'java.util.concurrent.ConcurrentHashMap' appears in /system/framework/core-libart.jar)
at ktx.assets.async.AssetStorage.getAssetIdentifiers(storage.kt:1228)
AssetStorage
uses aConcurrentHashMap
internally to map asset paths to registered asset types. Since it makes use of thegetOrDefault
method, older Android devices might throw the following exception: