[英]Unable to build with Support Library on Travis CI/Android SDK v20
我希望這不應該太具有挑戰性,但是:
目前我正在嘗試在Android / Travis CI中構建一個項目,你可以在這里找到它。 我正在嘗試使用Android L開發人員預覽版,並使用Travis-CI進行構建。 我希望使用Gradle SDK Manager插件可以讓我這樣做。 不幸的是,事實並非如此。 我不知道我的build.gradle文件是否設置不正確,或者是什么,但我希望有人能夠指出我正確的方向。
構建錯誤 :
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_testConfigDebugCompile'.
> Could not find any version that matches com.android.support:appcompat-v7:20.+.
Required by:
MinimalBible:app:unspecified
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.10.+'
}
}
apply plugin: 'android-sdk-manager'
apply plugin: 'com.android.application'
android {
compileSdkVersion 20
buildToolsVersion '20.0.0'
defaultConfig {
applicationId 'org.bspeice.minimalbible'
minSdkVersion 8
targetSdkVersion 20
versionCode 1
versionName '1.0'
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile 'com.squareup.dagger:dagger:1.2.1'
provided 'com.squareup.dagger:dagger-compiler:1.2.1'
compile 'com.android.support:appcompat-v7:20.+'
}
如果需要任何進一步的信息,請告訴我。
嘗試這樣的事情:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
//force complie with 20.0.0
compile ('com.android.support:appcompat-v7:20.0.0'){force = true}
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.1'
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.