aidl.exe Error while creating directories: Invalid argument

前提是你 提交于 2020-01-12 19:31:23

问题


I updated my sdk yesterday and I encountered a problem. Google Play Library seems to be broken. I couldn't understand the error and I couldn't find how to solve this problem. Any idea how to solve this problem without waiting Google?

aidl.exe E  3628  7164 io_delegate.cpp:102] Error while creating directories: Invalid argument

Screenshot of bug

Edit: As I see, this is a bug on 24.0.0 but still I can't understand how to solve this?

Edit2: My codes worked before the update.

https://code.google.com/p/android/issues/detail?id=202972


回答1:


Today ,Use Eclipse import Project

Error while creating directories: Invalid argument

Search Google

solve this problem:

  1. remove android/sdk/build-tools/24.0.0-preview
  2. Restart the Eclispe
  3. The project is build sucess;



回答2:


I solve a problem using very easy way. Go ...\sdk\build-tools and remove 24.0.0. This solves the problem.

Solution




回答3:


This seems to be error in aidl tool (or some change that is incompatible with build process). I have replaced aidl in 24.0.0 build tools with aidl from 23.0.0 and was able to compile correctly.




回答4:


I had to add the following code in my android{} section of my project's gradle.

sourceSets {
    main {
        aidl.srcDirs = ['src/main/aidl']
    }
}


来源:https://stackoverflow.com/questions/36498503/aidl-exe-error-while-creating-directories-invalid-argument

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!