android 编写好了aidl文件出现如下错误:
我的aidl文件是:
package com.scott.aidldemo;
import com.scott.aidldemo.Ret;
import com.scott.aidldemo.Cmd;
// Declare any non-default types here with import statements
interface IMyAidlInterface {
/**
* Demonstrates some basic types that you can use as parameters
* and return values in AIDL.
*/
Ret send(Cmd cmd);
}
这里是send方法的参数Cmd cmd; 少了 in 标识符.in 是标识输入参数。
具体错误可以点开android studio 的gradle consle,会显示具体错误。