problem with libraries....

486 views
Skip to first unread message

Noh Kumado

unread,
Oct 17, 2015, 12:56:26 PM10/17/15
to AIDE - Android Java IDE
Hello,

i have a java library (under maven) that i desperately try to use with aide...

i read the article about how to use a local maven repository, but its too generic, and me too dumb to transpose it to a real case... besides i am a beginner at maven, and it drives me nuts.... (never got a deployment done, have to do it by hand...)

so exit the nice maven solution even if aide claims to be able to use it...

so i dropped the jar into the libs directory...

but aide doesn't find it,,,,

what should i do otherwise? when i navigate to the jar in the libs directoryit opens it and finds everything, but when i try to import it into my code it says that this module doesn't exist....

what can i do???

Trixi Martin

unread,
Oct 17, 2015, 1:57:04 PM10/17/15
to andro...@googlegroups.com
Hi,

Please close your project and delete this directory: /sdcard/.aide/  . Restart AIDE and restart/rebuid your project.

Let us know if this helped,

Trixi

*appfour* Support Team
For more information and additional help please visit:




--
--
AIDE - Android Java IDE mailing list
andro...@googlegroups.com
http://groups.google.com/group/android-ide?hl=en

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

Noh Kumado

unread,
Oct 17, 2015, 10:00:33 PM10/17/15
to AIDE - Android Java IDE
On Saturday, October 17, 2015 at 7:57:04 PM UTC+2, Trixi Martin wrote:
> Hi,
>
> Please close your project and delete this directory: /sdcard/.aide/  . Restart AIDE and restart/rebuid your project.
>
> Let us know if this helped,
Hello,
closed Aide, removed the directory, re-started Aide, rebuild the project,
but still "unknown type or package...." :(

N

Trixi Martin

unread,
Oct 20, 2015, 12:30:01 PM10/20/15
to andro...@googlegroups.com, support
Please send a test-project to sup...@appfour.com,

Trixi

*appfour* Support Team
For more information and additional help please visit:

Noh Kumado

unread,
Nov 12, 2015, 12:34:41 PM11/12/15
to AIDE - Android Java IDE
Hello!

did you find out what's going wrong there?

thanks

Noh Kumado

unread,
Dec 3, 2015, 1:25:59 PM12/3/15
to AIDE - Android Java IDE
still nothing on that front.... so i can't add the jar, so i created a project UtilsApp, and inside a library project nohutils...

Now since i can't use the filebrowser to add this library to another project (due to immediate crash of AIDE when changing drectories), i try to create this by hand.... but fail....

i added after the add app in the topmost settings.gradle:

include ':app'
include ':nohutils'

project(':nohutils').projectDir = new File(rootProject.projectDir, '../UtilsApp/nohutils')

and in the app/build.gradle i added:
dependencies {
compile project(':nohutils')

compile fileTree(dir: 'libs', include: ['*.jar'])
}

but it fails with the error:
"Project dependency ':nohutils' not found" ....
since i still haven't found the correct manual (not that i found any concerning AIDE, if anybody has something or a link to something that looks like a manual for it i will take it gladly) i am stuck....

since i fail to see the flaw in the above logic... from what i gathered through stackoverflow, once you declared your project, you can use it freely as if it was local.....

so any pointer welcome!

Graham Spinks

unread,
Aug 1, 2016, 2:50:48 PM8/1/16
to AIDE - Android Java IDE
Not sure if this is still useful for you but I spent several hours searching how to do this. In the end it turns out you also have to add an entry to the .classpath file in your project folder so your project knows where to find the .jar file.
The entry should look like this:
<classpathentry kind="lib" path="libs/NAMEOFYOURJARFILE.jar"/>

John yepthomi

unread,
Apr 28, 2017, 9:35:36 PM4/28/17
to AIDE - Android Java IDE
Go to the jar file from within the AIDE IDE and the long press on the jar file and on the options that come up, select copy path. now, go to the application build grade and type this line at the end:

dependencies {
Compile files("paste the jar file's path here");
}


Thats it.
Reply all
Reply to author
Forward
0 new messages