You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are currently using the MultiDex library from Google to add the dynamically generated types (binding proxies) to the system ClassLoader. The support for the library however is discontinued as of Android 5.0+. Additionally, the library uses reflection to access private Array field, which might be different on different shells, provided by Hardware Vendors. For example we isolated a Samsung device on which MuliDex is failing.
The solution is to load the dynamic classes using DexClassLoader. The drawback with this approach is that the new classes are NOT visible to the system ClassLoader, which on its hand may lead to ClassNotFound exception when a dynamic type is attempted to be loaded by Android directly.
The above described problem however will not be present once we implement the AOT generation of binding proxies - #103.
The text was updated successfully, but these errors were encountered:
We are currently using the MultiDex library from Google to add the dynamically generated types (binding proxies) to the system ClassLoader. The support for the library however is discontinued as of Android 5.0+. Additionally, the library uses reflection to access private Array field, which might be different on different shells, provided by Hardware Vendors. For example we isolated a Samsung device on which MuliDex is failing.
The solution is to load the dynamic classes using DexClassLoader. The drawback with this approach is that the new classes are NOT visible to the system ClassLoader, which on its hand may lead to ClassNotFound exception when a dynamic type is attempted to be loaded by Android directly.
The above described problem however will not be present once we implement the AOT generation of binding proxies - #103.
The text was updated successfully, but these errors were encountered: