开发者

Eclipse not building aidl file

I'm having trouble getting eclipse to build an aidl file for android. It doesn't seem to recognize it and does not 开发者_如何学Ccall "aidl" when building project.


You might have resolved the problem, but for others' reference, i corresponding .java files would not have been generated.So once clean the project and if that doesn't work delete the gen folder and then try building the project. It worked for me.


did you look inside the gen folder, where generated classes are stored? that was my problem, I just looked at the wrong folder.


Firstly, be sure that your .aidl files are placed in the same package as of your .java files inside src folder.

You can check this by clicking mouse right click on .aidl file and check the path of this file. If the path does not contains your package name mentioned inside src folder, then copy the .aidl file and place it inside the package mentioned inside the src folder.

After this, clean the project and build it and see in gen folder, .java files will be generated for the respective .aidl files.


You might encounter this issue if you don't have the aidl binary on your system, which is to say if you haven't installed the Android SDK Build-tools package from the Android SDK Manager.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜