我使用的是'android studio‘,而且我还是个初学者。但是我不能也不知道如何使用它。
啊,我用的是Windows8 64位,现在我想用"https://github.com/square/android-times-square“。
到目前为止,我使用‘项目结构->模块-> + ->导入模块-> android-time-square-master (未打包)\ -> (取消标记测试并选择3) ->转到’或许(这是我的项目名称,但也存在PerhapsProject )‘->转到Dependancy -> + ->库-> Java -> android-time-square-master.zip (取消标记测试),然后应用,确定。
然后转到我的layout.xml,填写代码,填写他们对我说的活动,但它不起作用。
真的真的很抱歉,你能一步一步地告诉我吗?T.T
我希望制作能显示日历的活动。帮帮我。谢谢,真的真的提前谢谢了。
发布于 2013-07-26 19:16:57
Android Studio使用Gradle进行构建。版本2.2应该会拾取build.gradle文件中指定的所有库。但是,如果在项目结构对话框中更改了任何内容,则不会更新build.gradle文件。
打开
-project_root
-module_root
build.gradle此文件不应为空。在project_root文件夹中还有另一个空的build.gradle,所以不要混淆它们。在依赖关系闭包中添加所需的所有库。不要将依赖关系闭包与buildscript.dependencies混淆。
apply plugin: 'android'
repositories {
mavenCentral()
}
dependencies {
compile files('libs/android-support-v4.jar')
//here is depenency from Maven Central Repository
compile 'org.roboguice:roboguice:2.0'
//here is dependency from your local libs folder
compile files('libs/mylib.jar')
}https://stackoverflow.com/questions/17871861
复制相似问题