android 异常记录

Exception while doing past iteration backup : Source 
D:\app\build\intermediates\builds\debug\26071550246594\classes.dex and destination 
D:\app\build\intermediates\builds\debug\26071550246594\classes.dex must be different
解决方法:在项目的app\build\intermediates\builds\debug里面把26071550246594这个文件夹删掉


编译时报错
Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;
处理方法
在build.gradle去掉v7包的依赖(libs目录下的v4包与依赖的v7包冲突)


Error:Execution failed for task ':app:compileDebugAidl'.
> java.lang.RuntimeException: com.android.ide.common.process.ProcessException: 
Error while executing 'D:\sdk\build-tools\25.0.2\aidl.exe' with arguments {
-pD:\sdk\platforms\android-25\framework.aidl -oE:\asProject\AIDL2\app\build\generated\source\aidl\debug 
-IE:\asProject\AIDL2\app\src\main\aidl -IE:\asProject\AIDL2\app\src\debug\aidl 
-IE:\asProject\AIDL2\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\25.3.1\aidl 
-IE:\asProject\AIDL2\app\build\intermediates\exploded-aar\com.android.support\support-v4\25.3.1\aidl 
-IE:\asProject\AIDL2\app\build\intermediates\exploded-aar\com.android.support\support-fragment\25.3.1\aidl 
-IE:\asProject\AIDL2\app\build\intermediates\exploded-aar\com.android.support\support-media-compat\25.3.1\aidl 
-IE:\asProject\AIDL2\app\build\intermediates\exploded-aar\com.android.support\support-core-ui\25.3.1\aidl 
-IE:\asProject\AIDL2\app\build\intermediates\exploded-aar\com.android.support\support-core-utils\25.3.1\aidl 
-IE:\asProject\AIDL2\app\build\intermediates\exploded-aar\com.android.support\animated-vector-drawable\25.3.1\aidl 
-IE:\asProject\AIDL2\app\build\intermediates\exploded-aar\com.android.support\support-vector-drawable\25.3.1\aidl 
-IE:\asProject\AIDL2\app\build\intermediates\exploded-aar\com.android.support\support-compat\25.3.1\aidl 
-dC:\Users\HONGXI~1\AppData\Local\Temp\aidl155122129904660727.d E:\asProject\AIDL2\app\src\main\aidl\com\test\aidl2\IMyAidlInterface.aidl}

处理方法:在编写aidl的接口方法时,如果参数是自定义对象则必须有方向指示(in out inout),例void get(in Student student);

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值