2014-10-31 169 views
0

我做我自己的Android項目,我想使用第三方庫我project.I添加模塊依賴下載FoldableLayout從github.Link低於在Android工作室

https://github.com/alexvasilkov/FoldableLayout

,然後我從添加庫FoldableLayout文件夾到我的項目這個順序:root project -> new -> Module -> Import Exiting Project ->FoldableLayout-master/library爲模塊

在那之後,我加入編譯項目(「:庫」)到應用程序/的build.gradle

,但我得到一個錯誤

Error:(13, 0) Could not find property 'ANDROID_COMPILE_SDK' on [email protected] 

我添加的所有屏幕截圖如下

enter image description here 應用程序的項目結構 - >相關性

enter image description here

Root Project's setting.gradle file 

enter image description here

app's build.gradle file 

enter image description here

+0

你看過FoldableLayout提供的示例嗎? – helleye 2014-10-31 09:31:40

回答

0

我解決了這個問題,我自己:)

的問題是在gradle.properties

我需要將這些行添加到我的MyProject的/ gradle.properties

VERSION_NAME=1.0.3-SNAPSHOT 
VERSION_CODE=4 
GROUP=com.alexvasilkov 

POM_DESCRIPTION=Android widgets to implement folding animation 
POM_URL=https://github.com/alexvasilkov/FoldableLayout 
POM_SCM_URL=https://github.com/alexvasilkov/FoldableLayout 
POM_SCM_CONNECTION=scm:[email protected]:alexvasilkov/FoldableLayout.git 
POM_SCM_DEV_CONNECTION=scm:[email protected]:alexvasilkov/FoldableLayout.git 
POM_LICENCE_NAME=The Apache Software License, Version 2.0 
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt 
POM_LICENCE_DIST=repo 
POM_DEVELOPER_ID=alexvasilkov 
POM_DEVELOPER_NAME=Alex Vasilkov 

ANDROID_MIN_SDK=14 
ANDROID_TARGET_SDK=20 
ANDROID_COMPILE_SDK=20 
ANDROID_BUILD_TOOLS_VERSION=20.0.0 
+0

這是來自FoldableLayout提供的示例,對嗎? – helleye 2014-10-31 11:05:41

+0

從這裏開始https://github.com/alexvasilkov/FoldableLayout – 2014-10-31 12:46:17