0
하게 실행하는 동안 : 일부 클래스와 그 클래스가 storage
패키지에서 VolumeInfo
를 사용하여 나는 새로운 패키지를 만든오류 (110) 나는 다음과 같은 오류를 받고 있어요
frameworks/base/core/java/android/os/mypackage/MyServiceListenerClass.java:283: error 110: Parameter of unavailable type android.os.storage.VolumeInfo in android.os.mypackage.MyServiceListenerClass.myMethod()
.
이 오류에 대한 설명을 찾을 수 없습니다. 나는 무엇을 잘못 했는가?
업데이트 :
Error 110 = UNAVAILABLE_SYMBOL
것을 알아 냈다.
:/** * Information about a storage volume that may be mounted. A volume may be a * partition on a physical {@link DiskInfo}, an emulated volume above some other * storage medium, or a standalone container like an ASEC or OBB. * <p> * Volumes may be mounted with various flags: * <ul> * <li>{@link #MOUNT_FLAG_PRIMARY} means the volume provides primary external * storage, historically found at {@code /sdcard}. * <li>{@link #MOUNT_FLAG_VISIBLE} means the volume is visible to third-party * apps for direct filesystem access. The system should send out relevant * storage broadcasts and index any media on visible volumes. Visible volumes * are considered a more stable part of the device, which is why we take the * time to index them. In particular, transient volumes like USB OTG devices * <em>should not</em> be marked as visible; their contents should be surfaced * to apps through the Storage Access Framework. * </ul> * * @hide */