データ [0] に含まれる文字列を別のフラグメントに渡そうとしていますが、replace () メソッドで次のエラーが発生します。
replace(int, android.app.Fragment)' in 'android.app.FragmentTransaction' cannot be applied to '(int, androidx.fragment.app.Fragment)
Bundle bundle = new Bundle();
bundle.putString("key", data[0]);
Fragment fragment;
fragment = new AccountFragment();
fragment.setArguments(bundle);
getFragmentManager().beginTransaction().replace(R.id.my_account, fragment).commit();```