[android-developers] import error in AIDL, guessing Android.mk needs fixing.
Hi,
I am writing an aidl which will needs to use NetworkInfo from
com.android.internal.telephony.gsm.NetworkInfo,
I am using 'import com.android.internal.telephony.gsm.NetworkInfo' in
myService.aidl, I am able to generate the apk for my app but when I
try to build with the android source code i am getting the following
error: packages/apps/MyApp/src/com/example/myapplication/
myService.aidl:19: couldn't find import for class
com.android.internal.telephony.gsm.NetworkInfo.
My Android.mk (modified from the Android.mk of packages/apps/Phone) is
as follows
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_SRC_FILES += \
src/com/example/myapplication/myService.aidl
LOCAL_MODULE := com.example.myapplication
include $(BUILD_STATIC_JAVA_LIBRARY)
include $(CLEAR_VARS)
LOCAL_STATIC_JAVA_LIBRARIES := com.android.phone.common
LOCAL_JAVA_LIBRARIES := core framework
#maliha fix FRAMEWORKS_BASE_JAVA_SRC_DIRS comes from build/core/
pathmap.mk
LOCAL_AIDL_INCLUDES += $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_SRC_FILES += \
src/com/example/myapplication/myService.aidl
LOCAL_PACKAGE_NAME := MyApp
LOCAL_CERTIFICATE := platform
include $(BUILD_PACKAGE)
# Build the test package
include $(call all-makefiles-under,$(LOCAL_PATH))
what am i missing? I have tried a clean build multiple times.
Cheerio!
- Maliha.
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home