I'm currently using a Linux terminal and each time I try to save a aidl file it saves it as a text file.

I also tried converting the files but it didn't work for the aidl extension :(

mv IRemoteService IRemoteService.html (Converted successfully to HTML file)

mv IRemoteService IRemoteService.aidl (Still saves as txt file)

When I try to build the project with the above file (IRemoteService.aidl), I get the below error:

interface IRemoteService should be declared in a file called com/service/IRemoteService.aidl.

I'm relatively new to Linux and hence unaware if there is a efficient/easier way to accomplish this. Please advise.

有帮助吗?

解决方案

Turns out I just had to put the file in the above directory structure.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top