0
WifiDirectDemo 샘플을 사용하여이를 자체 앱에 구현하려고했지만 답변을 찾을 수없는 오류가 하나 있습니다.Wifi Direct getFragmentmanager 메서드 가비지 변환 가능 유형
DeviceListFragment fragmentList = (DeviceListFragment) getFragmentManager()
.findFragmentById(R.id.frag_list);
DeviceDetailFragment fragmentDetails = getFragmentManager().findFragmentById(R.id.frag_detail);
안드로이드 스튜디오는 더블 후 불환 유형이다 com.example.myapp.DeviceListFragment
이 단편, DeviceListFragment 및 DeviceDetailFragment 모두 데모에서 복사에 android.fragment 캐스팅 할 수 없으며 하더군요 확인이 문제를 해결할 수없는 것 같습니다. 다른 모든 것은 잘 작동합니다.