pengrad / java-telegram-bot-api

Telegram Bot API for Java
https://core.telegram.org/bots
Apache License 2.0
1.79k stars 372 forks source link

it did not compiled on android studio 1.5.1 #19

Closed gkamaall closed 8 years ago

gkamaall commented 8 years ago

i add the github (compile 'com.github.pengrad:java-telegram-bot-api:1.3.2') in dependencies. but gradel have errror :-1: Error:(26, 13) Failed to resolve: com.github.pengrad:java-telegram-bot-api:1.3.2 Show in File
Show in Project Structure dialog

pengrad commented 8 years ago

Problem on your side, i think. Post all yours build.gradle files. понедельник, 18 апреля 2016г., 15:43 +07:00 от kamaall < notifications@github.com> :

i add the github (compile 'com.github.pengrad:java-telegram-bot-api:1.3.2') in dependencies. but gradel have errror Error:(26, 13) Failed to resolve: com.github.pengrad:java-telegram-bot-api:1.3.2 Show in File Show in Project Structure dialog — You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub

gkamaall commented 8 years ago

this is build.gradle(module):

apply plugin: 'com.android.application'

android { compileSdkVersion 23 buildToolsVersion "23.0.2"

defaultConfig {
    applicationId "com.ipandroid.bottest"
    minSdkVersion 11
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}

dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:design:23.1.1' compile 'com.github.pengrad:java-telegram-bot-api:1.3.2' }

pengrad commented 8 years ago

Try to add mavenCentral() to repositories in your root build.gradle And turn off offline mode if its on. понедельник, 18 апреля 2016г., 15:53 +07:00 от kamaall < notifications@github.com> :

this is build.gradle(module): apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.2" defaultConfig { applicationId "com.ipandroid.bottest" minSdkVersion 11 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:design:23.1.1' compile 'com.github.pengrad:java-telegram-bot-api:1.3.2' } — You are receiving this because you commented. Reply to this email directly or view it on GitHub

gkamaall commented 8 years ago

it not work! i try in 3 day. plz send *.jar file

pengrad commented 8 years ago

Exec in terminal in the root of project: ./gradlew Any errors?

gkamaall commented 8 years ago

plz send me jar file to my email gkamaall@gmail.com i will try after update android studio to 2 and jdk to 8

pengrad commented 8 years ago

I tried to build it for android. Everything is ok. Sorry, I wont build jar for you. Try to understand why you cant resolve dependencies.

pengrad commented 8 years ago

Take it from here https://oss.sonatype.org/content/repositories/releases/com/github/pengrad/java-telegram-bot-api/1.3.3/