0

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.

Ahmed Faisal
  • 4,397
  • 12
  • 45
  • 74
  • Are you sure it's not your ide/ compiler that is confused? Linux doesn't pay that much attention to file extensions if anythign file extensions are a nicety for help people and potentially other programs understand what kind of file something is. – dudebrobro Aug 20 '13 at 18:05
  • how do you know that its txt file? – Maxim Shoustin Aug 20 '13 at 18:06
  • @Maxim: I right clicked on the file, clicked properties and under the Basic tab, I see Type: plain text document (text/plain) – Ahmed Faisal Aug 20 '13 at 18:08
  • Thank you for your comments. It turns out I just had to put the file in the above directory structure. Regards! – Ahmed Faisal Aug 20 '13 at 18:14

1 Answers1

0

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

Ahmed Faisal
  • 4,397
  • 12
  • 45
  • 74