Error:Configuration with name 'default' not found when building for Sony Smart Glass
Error:Configuration with name 'default' not found when building for Sony Smart Glass
我正在尝试在 Android Studio 2.1.2 中为 Sony Smart Glass 开发应用程序。我尝试添加 Sony Smart Glass 示例库函数。我收到这样的错误
Error:Configuration with name 'default' not found.
我的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')
如果有帮助,请告诉我。
我正在尝试在 Android Studio 2.1.2 中为 Sony Smart Glass 开发应用程序。我尝试添加 Sony Smart Glass 示例库函数。我收到这样的错误
Error:Configuration with name 'default' not found.
我的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')
如果有帮助,请告诉我。