可以看一下这篇博客:http://chengbs.iteye.com/blog/1234990 里面有提到。

解决方案 »

  1.   

    已经找到解决方案。source里,需要添加一个这个parcelables的具体实现的java文件。其他的,该AIDL需要有,只不过,不用写在Android.mk里面。
      

  2.   

    我已经这么做了,为什么还是不行啊~~~
    我的android.mk
    # the library
    # =============================================================
    include $(CLEAR_VARS)
    LOCAL_SRC_FILES := core/java/xinocomm/hardware/MagcardInfo.java \
        core/java/xinocomm/hardware/IHardwareService.aidl \#            $(call all-subdir-java-files)LOCAL_MODULE_TAGS := engLOCAL_MODULE := xinocomminclude $(BUILD_JAVA_LIBRARY)# The JNI component
    include $(CLEAR_VARS)
    include $(call all-makefiles-under,$(LOCAL_PATH))
      

  3.   

    一直提示:
    Aidl: xinocomm <= vendor/xinocomm/frameworks/base/core/java/xinocomm/hardware/IHardwareService.aidl
    vendor/xinocomm/frameworks/base/core/java/xinocomm/hardware/IHardwareService.aidl:18: couldn't find import for class xinocomm.hardware.MagcardInfo
    make: *** [out/target/common/obj/JAVA_LIBRARIES/xinocomm_intermediates/src/core/java/xinocomm/hardware/IHardwareService.java] 错误 1
      

  4.   


    就算创建了具体的实现还是无法在gen里生产编译好的java。只要是parcelable的aidl就不行。其他的aidl都可用生产一个java在gen里。奇怪了,我就做了一次在win7里打开aidl文件时选择始终以某edit编辑器打开,就成这样了,原先还好好的。