Re: [android-developers] How to compile .aidl file that references a class in an android library

2012-02-03 Thread Mark Murphy
http://code.google.com/p/android/issues/detail?id=21409

It's a known flaw in the aidl utility that has not yet been fixed.
There's discussion of workarounds/patches in the issue.

On Thu, Feb 2, 2012 at 10:01 PM, James Black planiturth...@gmail.com wrote:
 I have a library that my application uses.

 In one version of my program I am going to have an Android Service, and I am
 trying to compile the .aidl file, but, it references a class in my android
 library, and now I am getting an error that it can't find the file.

 I am using Eclipse for the compilation.

 This is what my .aidl file looks like:

 package com.myproject;

 import com.mylibrary.model.Road;   //  == I am getting the error on this
 line
 import android.location.Location;

 interface MyService {
     java.util.ListRoad retrieveNewPath();

     Location retrieveCurrentLocation();
 }

 --
 I know that you believe you understand what you think I said, but I'm not
 sure you realize that what you heard is not what I meant.
 - Robert McCloskey

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.4
Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to compile .aidl file that references a class in an android library

2012-02-02 Thread James Black
I have a library that my application uses.

In one version of my program I am going to have an Android Service, and I
am trying to compile the .aidl file, but, it references a class in my
android library, and now I am getting an error that it can't find the file.

I am using Eclipse for the compilation.

This is what my .aidl file looks like:

package com.myproject;

import com.mylibrary.model.Road;   //  == I am getting the error on this
line
import android.location.Location;

interface MyService {
java.util.ListRoad retrieveNewPath();

Location retrieveCurrentLocation();
}

-- 
I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en