我正在尝试为Android Studio 2.1.2中的Sony Smart Glass开发应用程序。我试图添加Sony Smart Glass样本库功能。我收到这样的错误
错误:找不到名称为“默认”的配置。
我的settings.gradle:
include ':app'
include ':libraries:mylib'
我的build.gradle:
// Top-level build file where you can add configuration options
common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
其中一个示例是创建SmartEyeglass应用程序的最佳起点。它们已经具有为您声明的所有必要依赖项。作为一个基本示例,请尝试从“ HelloWorld”示例开始。最后,尽管您的settings.gradle文件应包含以下内容:
includeFlat 'SmartExtensionAPI'
includeFlat 'SmartExtensionUtils'
includeFlat 'SmartEyeglassAPI'
并且您的build.gradle文件应包含此内容
compile project(':SmartEyeglassAPI')
compile project(':SmartExtensionAPI')
compile project(':SmartExtensionUtils')
请让我知道是否有帮助。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句