I cant include Aquery in my project!

1,403 views
Skip to first unread message

erizet

unread,
Sep 15, 2012, 3:05:53 AM9/15/12
to androi...@googlegroups.com
Hi, I need help. :)

I have cloned AQ from Github, and import it to my Android project. I have checked that it is marked as "Library".
The in my project I add as a library reference.

I dont get any compiletime errors, but when I try to run my project in the emulator I always get:  Could not find class 'com.androidquery.AQuery'.

When I reopen the properties->Android it shows a red cross(that indicates an error or something that is missing) befor AQuery that I referenced before. Remove the reference and add it agin doesnt make any difference.

Any ideas what I'm doing wrong?

Thanks!

Max Klimenko

unread,
Sep 15, 2012, 3:06:48 AM9/15/12
to androi...@googlegroups.com

Use compiled jar file.

15.09.2012 11:05 пользователь "erizet" <erik.zett...@gmail.com> написал:

Peter Liu

unread,
Sep 15, 2012, 3:44:37 AM9/15/12
to androi...@googlegroups.com

just link the src folder. aquery have no res. much easier that way.

sent from mobile

erizet

unread,
Sep 15, 2012, 2:46:03 PM9/15/12
to androi...@googlegroups.com
How do I do that?

When I tried Properties>Java Build Path and the Source-tab,then Link source...
I got the following error:
 The folder is already a source folder.

erizet

unread,
Sep 15, 2012, 2:53:14 PM9/15/12
to androi...@googlegroups.com
I changed the name of the src folder to something else. Efter renaming the folder I got it working. 

Thanks for helping me!

Peter Liu

unread,
Sep 16, 2012, 12:19:33 AM9/16/12
to androi...@googlegroups.com

after you pick the src folder change src string to aquery or something else

sent from mobile

Owlen

unread,
Sep 2, 2013, 6:18:02 AM9/2/13
to androi...@googlegroups.com
I must start by saying that the documentation for the install process are lacking. This looks like a great library for a newbie like me, but so far I only used "compiled" libraries where I placed the .jar in the libs folder and not a full source library, so the process is unclear. 

I've added the downloaded source as is to the libs folder and renamed it to "aquery". I right clicked it in the eclipse IDE and chose Build Path -> Use As Source Folder.
in the Java build path, under the sources tab I have myProject/libs/aquery listed. I don't see it listed under the "Libraries" tab. Should it be listed there?

What am I missing? 

Thanks in advance!

Peter Liu

unread,
Sep 3, 2013, 12:25:30 AM9/3/13
to androi...@googlegroups.com
Hi Oren,

There are two ways to do it.

Jar only:


You can download the jar and put it into "libs", and that should work if you are using eclipse. Otherwise add the jar to build path as well.

Source:


Fork it or download the source, inside the project, there's a "src" folder.

Include that folder as a source folder (in eclipse its "Link Source" in java build settings) or just copy the content inside to your own source folder.

Let me know if it works for you. :)

Thanks.


--
You received this message because you are subscribed to the Google Groups "Android Query" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-quer...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Owlen

unread,
Sep 3, 2013, 5:07:58 AM9/3/13
to androi...@googlegroups.com
It worked, of course. I have no idea what led me to unpack the .jar in the first place. It's absolutly the same process as other .jar s I've used.

I would still argue in favor for a short "installation" section here: https://code.google.com/p/android-query/wiki/HomePage

I already use MarketService in my project.


Thanks for creating this lib!

Emmanuel Wakey

unread,
Sep 16, 2014, 8:27:28 PM9/16/14
to androi...@googlegroups.com
please i have never used a library before and i have no idea of how to add this library to my project for it to work. please help me, i already downloaded the .jar file. Thanks in advance!

Jason F

unread,
Nov 29, 2014, 3:19:16 PM11/29/14
to androi...@googlegroups.com
Asumming you're using eclipse: Add the JAR file to your LIBS folder. Open the LIBS folder and then RIGHT CLICK > ADD TO BUILD PATH.

Should be good to go after that.

babji mullakuru

unread,
Jan 22, 2016, 5:53:41 AM1/22/16
to Android Query
go to gradle scripts--> build.gradle(Module:app) and the following text into dependencies
gependencies{
compile 'com.googlecode.android-query:android-query:0.24.3'
}
then sync project with gradle scripts...you can declare the Aquery aq=new......  it ill automatically import the class by pressing alt+enter
Reply all
Reply to author
Forward
0 new messages