parcelable aidl file not being generated as java

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

parcelable aidl file not being generated as java

Postby alex » Wed Dec 22, 2010 3:38 am

I am following this example:

http://developer.android.com/guide/deve ... /aidl.html

the problem is that Rect.aidl isn't being generated as Rect.java in the \gen\ folder.

:?
as soon as I remove the parcelable line, and pop in an interface instead the Rect.java suddenly is generated.

:twisted:
Is there some kind of bug with AIDL that makes "parcelable" not qualify for compilation ???

EDIT... additional info:
1. Android Development Toolkit Version: 8.0.1.v201012062107-82219
2. Targeting 1.6 (API level 4)
3. using Eclipse builder

summary of problem: aidl file containing just a parcelable is not being compiled to java in the \gen folder
alex
Freshman
Freshman
 
Posts: 2
Joined: Mon Jun 28, 2010 12:24 am

Top

Re: parcelable aidl file not being generated as java

Postby alex » Wed Dec 22, 2010 11:49 pm

manually running AIDL:

F:\Android\workspace\GPSbase\src\biemann\android\gps>aidl -b DataPackage.aidl
DataPackage.aidl:4 aidl can only generate code for interfaces, not parcelables,
DataPackage.aidl:4 .aidl files that only declare parcelables don't need to go in
the Makefile.


however, "\gen\<mypackage>IRemoteServiceCallback.java" is complaining:

<mypackage>.<variable> cannot be resolved to a type


:roll:
alex
Freshman
Freshman
 
Posts: 2
Joined: Mon Jun 28, 2010 12:24 am

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 3 guests