如何使用这个项目从GitHub
如何在依赖部分我build.gradle
文件中使用此Project如何使用这个项目从GitHub
我加入这一行:
compile 'com.otaliastudios:zoomlayout:1.0.3'
但没编译项目。我有这个信息: Enter image description here
我该如何解决这个问题?
问候 马辛
你必须谷歌Maven仓库添加到项目中的build.gradle。在Android工作室2+:
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
在Android工作室3+:
allprojects {
repositories {
jcenter()
google()
}
}
谢谢Samuele。同步过程没问题。但是,当我将代码添加到我的xml文件时,出现错误:错误:(20,22)不允许字符串类型('minZoom'值为'0.7f')。错误:(22,22)不允许使用字符串类型('maxZoom'值为'3f')。 –
后我你的XML请:) –
你尝试一下安装库和同步项目? –
而不是写26.0.0试26。+它会引发警告,但它会起作用。 –