最近刚开始用Android Studio,出的问题还真不少。昨天不知为何不能新建项目了,这两天重装了几次才搞定。

 

可又出了这个问题:

Android Studio 'AIDL is missing' 且 不识别R文件

 

原因:Compile Sdk Version和Build Tool Version不匹配。修改步骤如下所示:

Android Studio 'AIDL is missing' 且 不识别R文件       

 

Android Studio 'AIDL is missing' 且 不识别R文件

 

Android Studio 'AIDL is missing' 且 不识别R文件

 

把二者的版本选为相同或相近,最后clean一下就行了。

 

详细说明网址如下:

Execution failed for task ':app:compileDebugAidl': aidl is missing

http://stackoverflow.com/questions/29766830/execution-failed-for-task-appcompiledebugaidl-aidl-is-missing

 

还是在stackoverflow上找到的,还真是个不错的网站。

相关文章: