我要導入庫項目到我的應用程序,但每當我試圖這樣做,Android的Studio不承認它Android Studio中導入Facebook的庫:找不到屬性「ANDROID_BUILD_SDK_VERSION」
這也給了我在錯誤的build.gradle ..
圖書館是:PagerSlidingTabStrip ....
下面是一些圖片:
我一直在試圖讓3天工作至今! 請幫我:)
編輯:
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'
EDIT2:
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
請發佈您的build.gradle文件。你是如何申報該圖書館的? – 2Dee
這是圖書館的build.gradle .. –