Error on importing from Maven

30 views
Skip to first unread message

Matheus Henrique da Silva

unread,
Apr 4, 2015, 10:42:49 AM4/4/15
to pirc...@googlegroups.com
Im using Android Studio IDE (which uses Gradle) and i was not able to import the PircBotX.
Im getting this Gradle error:

Whats the problem? What should I do?

Thanks in advance.

Leon Blakey

unread,
Apr 4, 2015, 2:28:27 PM4/4/15
to pirc...@googlegroups.com
PircBotX is in Maven central. Is it in your repositories section?

Tbh I'm still learning gradle. I'd try in the command line first with gradlew before importing it into an IDE

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

Matheus Henrique da Silva

unread,
Apr 5, 2015, 4:33:17 PM4/5/15
to pirc...@googlegroups.com
I dont know very much about Gradle yet too.
This is on gradle.build file.

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.1.3'
    }
}

apply plugin: 'com.android.application'

dependencies {
    compile fileTree(dir: 'libs', include: '*.jar')
    compile 'com.google.android.gms:play-services:6.5.87'
    compile 'com.android.support:appcompat-v7:20.0.0'
    compile 'org.pircbotx:pircbotx:2.0.1'

}

Matheus Henrique da Silva

unread,
Apr 8, 2015, 9:38:07 AM4/8/15
to pirc...@googlegroups.com
my will is to give up of my project...
im very tired of it.

Leon Blakey

unread,
Apr 9, 2015, 1:05:52 PM4/9/15
to pirc...@googlegroups.com
I don't know how Android Studio works, but in plain command line gradle works.

I made this build.gradle
apply plugin: 'java'
repositories {
    jcenter()
}

dependencies {
    compile 'org.pircbotx:pircbotx:2.0.1'
}

I then made a src/main/java folder and made a Test class inside of there which printing PircBotX.VERSION. Ran "gradle build" in the command line and it worked

On Wed, Apr 8, 2015 at 9:38 AM, Matheus Henrique da Silva <matheust...@gmail.com> wrote:
my will is to give up of my project...
im very tired of it.

--
Reply all
Reply to author
Forward
0 new messages