aidl.exe Error while creating directories: Invalid argument

一笑奈何 提交于 2019-12-04 05:16:30

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;

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

Solution

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.

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

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