[英]Android studio V0.8 cannot create new Glass Module with error “The component Glass Module has a minimum SDK level of 19”
I am working on a phone app and planning to port it to glass with some modifications. 我正在开发手机应用程序,并计划进行一些修改将其移植到玻璃上。 I thought creating a new Glass Module under the parent app project will save me some time and effort, since the libraries modules are already set up, and my phone app's module is always present for me to reference.
我认为在父应用程序项目下创建一个新的Glass Module将节省我的时间和精力,因为已经设置了库模块,并且电话应用程序的模块始终存在,可供我参考。 However when I tries to create a Glass Module from the "New Module" dialogue a red message below says "The component Glass Module has a minimum sdk level of 19."
但是,当我尝试从“新模块”对话框中创建玻璃模块时,下面的红色消息显示“组件玻璃模块的最低sdk级别为19”。 I am unable to carry on the setup.
我无法进行设置。
My project's build.gradle is very simple and does not define a min sdk : 我项目的build.gradle非常简单,没有定义min sdk:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.+'
}
}
allprojects {
repositories {
jcenter()
mavenCentral()
}
}
Does anyone any idea what is preventing me from creating a new Module under the project? 有谁知道是什么阻止了我在项目下创建新模块?
I have found a walk around: create a new Android Application Module, and under "Module settings" enter "Google Inc.:Glass Development Kit Preview:19" for Compiler sdk version. 我发现了一个解决方法:创建一个新的Android应用程序模块,然后在“模块设置”下为Compiler sdk版本输入“ Google Inc.:Glass Development Kit Preview:19”。 this will import the corresponding GDK for your module.
这将为您的模块导入相应的GDK。 This works however it is still impossible to create Glass Module directly from the New Module Dialogue.
这可行,但是仍然不可能直接从“新模块对话”中创建Glass Module。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.