Jme3 does not support Android X

import android.app.Fragment;

public class AndroidHarnessFragment extends Fragment

Jme uses android.Fragment package which is dynamic & can be manipulated with both androidx & android packages , use JmeSurfaceView with androidx on a top of androidx Fragment, if you want to have jme rendered in a fragment.