[英]Not able to add a library to project in the Android Studio
我已经遇到了这个错误:
“无法解决:com.github.ygorbarboza:AKParallax-Android:fce9eac521”
“显示错误:找不到DSL等级方法:'maven()'”
这是我的build.gradle
文件。
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.example.abhishek.experiment"
minSdkVersion 11
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
dependencies {
compile fileTree(include: ['*.aar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:design:23.1.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.github.ygorbarboza:AKParallax-Android:fce9eac521'
}
我什至还添加了存储库
repositories {
maven {
url "https://jitpack.io"
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.