2014-10-31 170 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