2
나는 개미 모든 것을 가진 APK를 구축을 위해 노력하고 있어요에 null로 AutoCompleteTextView에 어댑터를 설정하려고하고, 컴파일이 오류 메시지와 함께 실패 일식에서컴파일 오류가 때 개미 빌드
[javac] type parameters of <T>void cannot be determined; no unique maximal instance exists for type variable T with upper bounds android.widget.ListAdapter,android.widget.Filterable
[javac] currentAddressTextView.setAdapter(null);
가 잘 컴파일 때 개미 빌드 중에 컴파일하는 부분도 제거합니다.
ArrayAdapter<String> adapter = null;
currentAddressTextView.setAdapter(adapter);
가 참으로 나는 그것을 시도하지만,()도 adapter.clear도 작동하지 않습니다 – meh
@themilkman : 어댑터가 null 일 때'adapter.clear()'가 어떻게 작동할까요? –
대신에 setAdapter (null)을 호출하는 대신에; 그냥 adapter.clear() 호출; – meh