문제

I downloaded android source code trying to understand how stub class works for android telephony system, so I use aidl convert ITelephony.aidl but it gives me error such as:

couldn't find import for class android.os.Bundle;

couldn't find import for class android.telephony.NeighboringCellInfo;

couldn't find import for class android.telephony.CellInfo;

도움이 되었습니까?

해결책

You would need to let the aidl command know the location of those classes.

For example, for class android.os.Bundle, try following:

aidl -pandroid_sdk/platforms/android-19/framework.aidl ITelephony.aidl

Similarly, search *.aidl for those containing

parcelable android.telephony.NeighboringCellInfo;
parcelable android.telephony.CellInfo;

and pass them to the aidl command.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top