SORU
31 Ocak 2014, Cuma


Android Studio Facebook kitaplığı alma: mülk 'ANDROİD_BUİLD_SDK_VERSİON' bulunamadı;

Kütüphane projesi almak için benim app içine istiyorum ama bunu yapmak için çalıştığınızda zaman , Android Studio tanımaz

Bu da benim build hatalar veriyor... gradle

Kütüphane : ...PagerSlidingTabStrip.

İşte bazı resimler :

enter image description here

enter image description here

3 gündür o kadar çok iş yapmaya çalışıyorum !! Bana Yardım Et Lütfen :)

DÜZENLEME:

apply plugin: 'android-library'

dependencies {
compile 'com.android.support:support-v4:19.0.0'
}

android {
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION

defaultConfig {
    minSdkVersion 8
    targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
}

sourceSets {
    main {
        manifest.srcFile 'AndroidManifest.xml'
        java.srcDirs = ['src']
        res.srcDirs = ['res']
    }
}
}

 apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'

EDİT2 :

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':Sahertoday'.
> Could not resolve all dependencies for configuration ':Sahertoday:_debugCompile'.
> Could not find com.astuetz:pagerslidingtabstrip:1.0.1.
 Required by:
     Saher-3:Sahertoday:unspecified

* Try:
 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get         more log output.

 BUILD FAILED

CEVAP
31 Ocak 2014, Cuma


Öncelikle, yerel lib derleme olmadan proje için bu bağımlılık ekleyebilirsiniz.

dependencies {
    compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
}

Eğer bu lib yerel olarak derlemek istiyorum aksi halde, gradle bu tuşları tanımlamak gerekir.kök özellikleri.

ANDROID_BUILD_TARGET_SDK_VERSION=19
ANDROID_BUILD_TOOLS_VERSION=19
ANDROID_BUILD_SDK_VERSION=19

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • majesticdubstep

    majesticdubs

    3 Kasım 2011
  • TechnoBuffalo

    TechnoBuffal

    8 HAZİRAN 2007
  • Tome Rodrigo

    Tome Rodrigo

    9 Temmuz 2006