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);