Android aidl 编写编译错误

来源:互联网 发布:excel账单数据分列 编辑:程序博客网 时间:2024/06/03 06:33

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 statementsinterface 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,会显示具体错误。



原创粉丝点击