aidl link error, couldn't find import for class com.android.internal.telephony.gsm.NetworkInfo

by maliha » Thu, 19 May 2011 19:49:34 GMT


Sponsored Links
 Hi,

I am trying to re-use PhoneUtils.java (~/android_src/packages/apps/
Phone/src/com/android/phone/) within my app with some customizations.

I have added INetworkQueryServiceCallback.aidl and
INetworkQueryService.aidl into my app folder (~/android_src/packages/
apps/USSDActivity/src/com/myapp/ussdactivitytest) however when i am
building alongside android source I am getting the following error:

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Aidl: com.myapp.ussdactivity <= packages/apps/USSDActivity/src/com/
myapp/ussdactivitytest/INetworkQueryService.aidl
Aidl: com.myapp.ussdactivity <= packages/apps/USSDActivity/src/com/
myapp/ussdactivitytest/INetworkQueryServiceCallback.aidl
packages/apps/USSDActivity/src/com/myapp/ussdactivitytest/
INetworkQueryServiceCallback.aidl:19: couldn't find import for class
com.android.internal.telephony.gsm.NetworkInfo
make: *** [out/target/common/obj/JAVA_LIBRARIES/
com.myapp.ussdactivity_intermediates/src/src/com/myapp/
ussdactivitytest/INetworkQueryServiceCallback.java] Error 1

Android.mk:
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/myapp/ussdactivitytest/EventLogTags.logtags \
        src/com/myapp/ussdactivitytest/INetworkQueryService.aidl \
        src/com/myapp/ussdactivitytest/
INetworkQueryServiceCallback.aidl

#maliha before any including any $(BUILD_XXXX) script.
LOCAL_MODULE := com.myapp.ussdactivity
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/myapp/ussdactivitytest/EventLogTags.logtags \
        src/com/myapp/ussdactivitytest/INetworkQueryService.aidl \
        src/com/myapp/ussdactivitytest/
INetworkQueryServiceCallback.aidl

LOCAL_PACKAGE_NAME := USSDActivity
LOCAL_CERTIFICATE := platform
include $(BUILD_PACKAGE)
# Build the test package
include $(call all-makefiles-under,$(LOCAL_PATH))

Cheerio!
- Maliha

-- 



aidl link error, couldn't find import for class com.android.internal.telephony.gsm.NetworkInfo

by maliha » Thu, 19 May 2011 22:35:34 GMT


 Hi,

I am trying to re-use PhoneUtils.java (~/android_src/packages/apps/
Phone/src/com/android/phone/) within my app with some customizations.

I have added INetworkQueryServiceCallback.aidl and
INetworkQueryService.aidl into my app folder (~/android_src/packages/
apps/USSDActivity/src/com/myapp/ussdactivitytest) however when i am
building alongside android source I am getting the following error:

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Aidl: com.myapp.ussdactivity <= packages/apps/USSDActivity/src/com/
myapp/ussdactivitytest/INetworkQueryService.aidl
Aidl: com.myapp.ussdactivity <= packages/apps/USSDActivity/src/com/
myapp/ussdactivitytest/INetworkQueryServiceCallback.aidl
packages/apps/USSDActivity/src/com/myapp/ussdactivitytest/
INetworkQueryServiceCallback.aidl:19: couldn't find import for class
com.android.internal.telephony.gsm.NetworkInfo
make: *** [out/target/common/obj/JAVA_LIBRARIES/
com.myapp.ussdactivity_intermediates/src/src/com/myapp/
ussdactivitytest/INetworkQueryServiceCallback.java] Error 1

Android.mk:
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/myapp/ussdactivitytest/EventLogTags.logtags \
        src/com/myapp/ussdactivitytest/INetworkQueryService.aidl \
        src/com/myapp/ussdactivitytest/
INetworkQueryServiceCallback.aidl

#maliha before any including any $(BUILD_XXXX) script.
LOCAL_MODULE := com.myapp.ussdactivity
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/myapp/ussdactivitytest/EventLogTags.logtags \
        src/com/myapp/ussdactivitytest/INetworkQueryService.aidl \
        src/com/myapp/ussdactivitytest/
INetworkQueryServiceCallback.aidl

LOCAL_PACKAGE_NAME := USSDActivity
LOCAL_CERTIFICATE := platform
include $(BUILD_PACKAGE)
# Build the test package
include $(call all-makefiles-under,$(LOCAL_PATH))

Cheerio!
- Maliha

-- 


Sponsored Links


Other Threads

1. Reg: Help required to make a text views to marquee always

Hi,

I am trying to draw a text view which always scroll though it does not have
focus in it.  But the text view does not support the same. Have any one
tried such thing? Pls let me know if any thing can be done for the same.


Thanks & Regards,
Sathya

-- 

2. System Calls

Hi,

Is there any way I can write an application which can monitor system
calls made by other applications?

Thanks in Advance,
Perumal

-- 

3. Media player di android

4. Andoird on x86 Recompile with -Xlint:unchecked for details issue

5. Error using SDK and AVD Manager

6. SQLite image storing problem

7. Adding, Editing, Deleting entries in Androids call log