Error:Execution failed for task

2017-08-29  本文已影响9人  T_Y_H

开发随记

error log 如下:
Error:Execution failed for task ':app:compileDebugAidl'.

java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing 'D:\SDK\SDK\build-tools\23.0.1\aidl.exe' with arguments {-pD:\SDK\SDK\platforms\android-23\framework.aidl -oE:\workspace\Music\app\build\generated\source\aidl\debug -IE:\workspace\Music\app\src\main\aidl -IE:\workspace\Music\app\src\debug\aidl -IE:\workspace\Music\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.4.0\aidl -IE:\workspace\Music\app\build\intermediates\exploded-aar\com.android.support\animated-vector-drawable\23.4.0\aidl -IE:\workspace\Music\app\build\intermediates\exploded-aar\com.android.support\support-vector-drawable\23.4.0\aidl -IE:\workspace\Music\app\build\intermediates\exploded-aar\com.android.support\support-v4\23.4.0\aidl -dC:\Users\小田\AppData\Local\Temp\aidl7445306370302449187.d E:\workspace\Music\app\src\main\aidl\music\xiaotian\com\music\aidl\IPlayMusicControl.aidl}

解决方法,
1、检查aidl文件中用到的类型是否都实现了Parcelable 接口;
2、检查aidl文件中的参数是否加了in,out,inout之类的修饰符,(此类修饰符的作用:http://blog.csdn.net/yangzhaomuma/article/details/50576017
以上就是我我解决这个报错的方法,以此随记!

上一篇下一篇

猜你喜欢

热点阅读