Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 630677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:52:53+00:00 2026-05-13T19:52:53+00:00

My question concerns using aidl.exe (on a Windows system) from the command line. This

  • 0

My question concerns using aidl.exe (on a Windows system) from the command line. This question has nothing to do with Eclipse, Netbeans, etc.

Included with the Android SDK are the following three AIDL definition files:

IRemoteService.aidl
IRemoteServiceCallback.aidl
ISecondary.aidl

located in the following directory:

C:\android-sdk-windows\platforms\android-2.1\samples\ApiDemos\src\com\example\android\apis\app

For the sake of simplicity, I copied aidl.exe into the above directory. Then, from a console Window, I successfully used the following two commands to generate .java files:

C:\Android-project\ApiDemos\src\com\example\android\apis\app>aidl IRemoteServiceCallback.aidl
C:\Android-project\ApiDemos\src\com\example\android\apis\app>aidl ISecondary.aidl

Invoking these commands produced the files IRemoteServiceCallback.java and ISecondary.java, respectively. So far so good.

I note that both .aidl files are simple; they include no ‘import’ statements.

The remaining .aidl file, IRemoteService.aidl, does include the following import statement on line 19:

import com.example.android.apis.app.IRemoteServiceCallback;

The problem arises when I run the AIDL tool on this file:

  C:\Android-project\ApiDemos\src\com\example\android\apis\app>aidl IRemoteService.aidl

Doing so causes the following error message to be printed in the console window:

IRemoteService.aidl:19: couldn’t find import for class com.example.android.apis.app.IRemoteServiceCallback

The AIDL tool evidently could not locate the IRemoteServiceCallback.aidl file in the same directory in which it was running. According to the AIDL tool’s “usage” message, there is a command that apparently can be used to resolve this problem:

  -I<DIR>    search path for import statements.

The problem: I have not been able to specify -I in such a way as to avoid the error message and have the AIDL tool generate a .java file from the .aidl file with an ‘import’ statement. (Note: I set the Windows environment variable ‘path’ to my current directory.) Here are a few variations I’ve tried:

-Ic:\com\example\android\apis\app
-Ic:/com/example/android/apis/app
-I.\
-I.

I must be missing something simple. Surprisingly, even though I’ve seen variations of this question posted in various places, I have yet to see an answer or any documentation about AIDL command line usage (other than the aidl.exe USAGE info). Can someone clue me in?

Thanks,
Matt

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:52:53+00:00Added an answer on May 13, 2026 at 7:52 pm

    You must provide the folder path to the source files, but WITHOUT the path after the base src folder.
    So, in your case the right command is:

    C:\Android-project\ApiDemos\src\com\example\android\apis\app>aidl -IC:\Android-project\ApiDemos\src\ IRemoteService.aidl
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 353k
  • Answers 353k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You could try instantiating a Zlib::Deflate stream and feeding it… May 14, 2026 at 7:50 am
  • Editorial Team
    Editorial Team added an answer Try declaring and using your types separately. This makes the… May 14, 2026 at 7:50 am
  • Editorial Team
    Editorial Team added an answer Rehashing is intended to reduce the likelihood of collisions, so… May 14, 2026 at 7:50 am

Related Questions

My question concerns Google Web Toolkit (GWT). I'm about to begin development for a
I see that version 2 of MVC.NET now has a RequireHttps attribute, which works
I'm trying to come up with a good way to do authentication and authorization.
I'm working on an application that needs to quickly render simple 3D scenes on
My company wants to change domain names. Requests to http://ServerA/folder/page.aspx need to go to

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.