How to apply other solution i.e. a CameraXConfig must be explicitly provided for initialization??
Our plugin architecture works as follows
Main app is on play store
When app launch and and user click one of the plugin then plugin related apk is downloaded from cloud and files are loaded using dexclassloader.
Just in case this helps
Thank you
In this, we are getting class cast exception as we are using plugin context and it requires application context.
Now, I see that 2 new releases have come. Is there any other solution we can work with ?
AndroidRuntime: FATAL EXCEPTION: main
AndroidRuntime: java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.company.android.oneconnect/com.company.android.plugin.steamcloset.DeviceInfoActivity}:android.view.InflateException: Binary XML file line #26: Binary XML file line #26: Error inflating class androidx.camera.view.CameraView
AndroidRuntime: caused by: android.view.InflateException: Binary XML file line #26: Binary XML file line #26: Error inflating class androidx.camera.view.CameraView
AndroidRuntime: CausedBy: java.lang.reflect.InvocationTargetException
AndroidRuntime: caused by: java.lang.ClassCastException: com.samsung.android.plugins.PluginApplicationContext cannot be cast to android.app.Application
AndroidRuntime: at androidx.camera.core.CameraX.getOrCreateInstance(CameraX.java:849)
AndroidRuntime: at androidx.camera.lifecycle.ProcessCameraProvider.getInstance(ProcessCameraProvider.java:137)
AndroidRuntime: at androidx.camera.view.CameraXModule.<init>(CameraXModule.java:124)
AndroidRuntime: at androidx.camera.view.CameraView.init(CameraView.java:172)
AndroidRuntime: at androidx.camera.view.CameraView.init(CameraView.java:138)
AndroidRuntime: at androidx.camera.view.CameraView.init(CameraView.java:133)
2022-02-21 11:24:56.443 13007-16008/? E/CameraX: Failed to retrieve default CameraXConfig.Provider from meta-dataandroid.content.pm.PackageManager$NameNotFoundException: ComponentInfo{ape.ufogames/androidx.camera.core.impl.MetadataHolderService}
--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/bcddde3a-9a7e-4031-aa24-b9dbca5b63afn%40android.com.
--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/616ae391-e257-4db5-b072-64983efbc7fen%40android.com.
To view this discussion on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/CADwyeNOMPexGjznGZRCYeA5fyuaQzwmBc5uhxmALnJsEtSbx9A%40mail.gmail.com.