我使用的是Eclipse,我在libs文件夾中有(picasso.jar),然後生成了Gradle構建,然後切換到Android工作室。但畢加索圖書館停止工作。在Android Studio中添加畢加索庫時出錯
我的項目結構是這樣的:
ProjectStructure--> dependices--> library dependices -->picasso.
這是錯誤:
Error:A problem occurred configuring root project 'HomePage'. Could not resolve all dependencies for configuration ':_debugCompile'. Could not find any version that matches com.squareup:picasso:2.2.+. Required by: :HomePage:unspecified
的build.gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
}
}
apply plugin: 'android'
dependencies {
compile project(':libraries:process_library')
compile 'com.squareup:picasso:2.2.+'
}
android {
compileSdkVersion 19
buildToolsVersion '19.0.3'
defaultConfig {
minSdkVersion 14
targetSdkVersion 19
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
// Move the tests to tests/java, tests/res, etc...
instrumentTest.setRoot('tests')
// Move the build types to build-types/<type>
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
// This moves them out of them default location under src/<type>/... which would
// conflict with src/ being used by the main source set.
// Adding new build types or product flavors should be accompanied
// by a similar customization.
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
}
我有什麼做的爲了畢加索圖書館再次工作?