Wednesday, July 6, 2011

[android-developers] Aidl Error : couldn't find import for class org.json.JSONObject

Hi,
I have written an aidl file in the path android/framwork/base/core/
java/com/, which has a import statement - import org.json.JSONObject.
But the build is failing with an error - 'couldn't find import for
class org.json.JSONObject'.
According to my study I found that for import statements in aidl we
should define LOCAL_AIDL_INCLUDES += $(FRAMEWORKS_BASE_JAVA_SRC_DIRS)
in the Android.mk file. In my source code, Android.mk in framework/
base/ already contains the above definition. Please let me know how to
resolve the import JSON error in aidl.

Thanks,

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

No comments:

Post a Comment