SceneView / sceneform-android

Sceneform Maintained is an ARCore Android SDK with Google Filament as 3D engine. This is the continuation of the archived Sceneform
https://sceneview.github.io/sceneform-android/
Apache License 2.0
633 stars 145 forks source link

incompatible Fragment type #436

Closed gabrielegalimbertiphd closed 1 year ago

gabrielegalimbertiphd commented 1 year ago

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 1 year ago

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" />
github-actions[bot] commented 1 year ago

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.

github-actions[bot] commented 1 year ago

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.