
package com.mysite.service;import com.othersite.library.MyObject;interface IMyService { int getPID(); voID basicTypes(int anInt,long aLong,boolean aBoolean,float afloat,double aDouble,String aString); MyObject getobjects();} 错误是:
解决方法Couldn’t find import for class com.othersite.library.MyObject
You must create a separate .aIDl file for each class you wish to use
within your service that declares that class as parcelable.
有关于此问题的博客文章here.
总结以上是内存溢出为你收集整理的android – 无法在AIDL接口中使用库中的对象全部内容,希望文章能够帮你解决android – 无法在AIDL接口中使用库中的对象所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)