Process 'command '...SDK\build-tools\...\aidl.exe'' finished with non-zero exit value 1

Process ‘command ‘D:\Android\SDK\build-tools\27.0.3\aidl.exe’’ finished with non-zero exit value 1

  • aidl文件编码错误
  • aidl文件和java文件目录不一致
  • aidl中定义的Interface名和所属文件名不一致
  • aidl需要传递的对象名/包名不匹配或者没有序列化(对象须继承Parcelable)

总之aidl要和java一一对应

你可能感兴趣的:(aidl,android)