ITelephony.aidl not compiling in eclipse

江枫思渺然 提交于 2020-01-04 05:11:28

问题


I am using the code of this answer, where as I have to add ITelephony.aidl to my project source, I did that.

But this aidl file not compiling. Is there any other step which are required?


回答1:


First create a package in the src folder in your project named com.android.internal.telephony and within that package create a file and copy paste the interface ITelephony and save the file as ITelephony.aidl. When you compile you will get the .java file for the ITelephony in the gen folder.This is what I did and my issue got solved.

Hope this helps




回答2:


If your aidl file is showing any error in eclipse then you should consider it and post the error here but if it is not showing any error you must clean your project and build it again. After this process you must go in "gen" folder and check either this file is compiled there and any class is exist with the same name of aidl file. If it is found, its mean aidl file is compiling properly.

Thanks and Regards, Ali




回答3:


Certin versions of Eclipse move the reference library folders for prjects.Either update eclipse, reinstall eclipse and the adt plug in or move the library within your eclipse folder.



来源:https://stackoverflow.com/questions/7632348/itelephony-aidl-not-compiling-in-eclipse

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