SceneView/sceneform-android

incompatible Fragment type

gabrielegalimbertiphd opened this issue · 3 comments

Hi,

I Have this error. How can I change the code?

error: incompatible types: Fragment cannot be converted to ArFragment

arFragment = (ArFragment) fragmentManager.findFragmentById(R.id.fragment);

Blizl commented

Does your XML look like this?

<androidx.fragment.app.FragmentContainerView
    android:id="@+id/arFragment"
    android:name="com.google.ar.sceneform.ux.ArFragment"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.