android AIDL 编译错误,finished with non-zero exit value 1

来源:互联网 发布:oracle sql trace 编辑:程序博客网 时间:2024/05/23 01:18

> java.lang.RuntimeException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command

  '/home/wh/Android/Sdk/build-tools/23.0.2/aidl'' finished with non-zero exit value 1


IPlayer.aidl

interface IPlayer {
void playStream(String url, int urlType, int uploadProcess, int streamType); void playStream(String url, int streamType);
}


错误原因: 虽然参数不一样,但AIDL认为两个函数命名重名了

interface IPlayer {
void playStream(String url, int urlType, int uploadProcess, int streamType); 
 void playUrlStream(String url, int streamType);  
}

修改名字即可

0 0
原创粉丝点击