android-developers  

Re: [android-developers] Re: AIDL in multiple projects in Eclipse

Peter Fortuin
Tue, 16 Mar 2010 09:55:02 -0700

I had that, but that didn't work. Now I just have set my Build Path in the
gui application.


2010/3/16 Sime <sime...@gmail.com>

> Quick question, do you have the aidl file in both applications?
>
> Regards
>
>
> On 16 mar, 14:07, Peerke <peter.fort...@gmail.com> wrote:
> > Hello,
> >
> > I have problems with the following:
> >
> > I want to create to applications. One with a Android service and one
> > with a Activity that will use functions on the Service.
> > Before I splitted this in to applications I got everything working in
> > one application. I can call functions (that are definned in the aidl-
> > file) on the service without problems.
> >
> > Now the problems coms. I splitted the application into two parts, a
> > Service application and Gui application.
> > The bindins to the service (in the gui application) works and I see
> > that the service is getting created. Then in the onServiceConnected
> > function of the ServiceConnection class I created the following:
> >
> > mService = IMyService.Stub.asInterface(service);
> >
> > And this gives me the following exception:
> >
> > 03-16 13:53:05.549: ERROR/AndroidRuntime(881):
> > java.lang.NoClassDefFoundError: MyPackage.IMyService$Stub
> >
> > It looks like he can't find the Stub class in IMyService. But the Stub
> > is part of the java file generated out of the aidl-file.
> >
> > Anyone has any idea why I get this exception or how I can resolve this
> > issue?
>
> --
> 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<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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