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 7676623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:14:29+00:00 2026-05-31T17:14:29+00:00

In the spirit of re-using code, I’m trying to create a few library projects.

  • 0

In the spirit of re-using code, I’m trying to create a few library projects. However, I seem to run into a problem defining .aidl files that span the libraries. Here is the problem:

In library A I have Foo.java and Foo.aidl. Foo.java is Parcelable so the aidl declaration is:

Foo.aidl:

package com.example.library.A;
parcelable Foo;

Now I’m trying to create library B. In library B I want to define a service interface that uses class Foo:

IMyService.aidl:

package com.example.library.B;
import com.example.library.A.Foo;

interface IMyService {
    void requestSomething(in Foo fooBug);
}

This file does not compile complaining that it couldn’t find the import for Foo. I’ve tried referencing library A and I’ve tried adding the library project as an external jar, but neither work.

Is there a limitation that I don’t know about? Am I doing something wrong with my project setup??

I should probably mention that I’ve used library A directly in a project with no problem so I’m confident that lib A is not the problem.

  • 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-31T17:14:30+00:00Added an answer on May 31, 2026 at 5:14 pm

    I have it working, but I’m not happy with the solution. In lib B, I had to add a com.example.library.A package and copy the Foo.aidl file into it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to parse JSON string using Boost Spirit store JSON object into recursive
In the spirit of using existing, tested and stable libraries of code, I started
I want to parse a file into an AST using Boost Spirit. The root
I'm new to Boost Spirit and trying to write JSON parser using Boost Spirit
I have a strange problem with a calculator made using boost::spirit. This calculator is
I'm having a bit of an odd problem while trying to compile some code
I am using Boost::Spirit to parse some text into structs. This requires using BOOST_FUSION_ADAPT_STRUCT
I'm trying to parse a string similar to the following using a spirit parser:
I'm trying to get a handle on using boost::spirit to parse character tokens, and
I am using Boost Spirit parser, and as the parser is parsing, semantic actions

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.