我正在尝试使用Adnroids stock DeskClock应用:https://android.googlesource.com/platform/packages/apps/DeskClock/
但是,在更新build.gradle
:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
}
}
allprojects {
repositories {
jcenter()
}
}
apply plugin: "com.android.application"
android {
sourceSets {
main {
manifest.srcFile "AndroidManifest.xml"
java.srcDir "src"
res.srcDir "res"
assets.srcDir "assets"
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
dependencies {
compile (project(":android-opt-datetimepicker")) {
exclude module: "support-v4"
}
compile project(":messageformat")
compile project(":support-design")
compile project(":support-v7-appcompat")
compile project(":support-v7-gridlayout")
compile project(":support-v7-recyclerview")
compile project(":support-v13")
}
}
项目参考的错误继续:
Error:(50, 0) Project with path ':android-opt-datetimepicker' could not be found in root project 'DeskClock'.
如何将其重新配置才能工作?