我在安装Android studio并创建一个简单的应用程序后立刻收到错误.
遵循的步骤:
加载项目时,gradle失败并显示错误:
Error:The 'java' plugin has been applied, but it is not compatible with the Android plugins.
Run Code Online (Sandbox Code Playgroud)
模块Gradle文件:
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "info.ankitjc.happybirthday"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.1.0'
testCompile 'junit:junit:4.12'
}
Run Code Online (Sandbox Code Playgroud)
项目Gradle文件:
// …
Run Code Online (Sandbox Code Playgroud) 我使用Liferay 6.2 + Tomcat 7.0来创建使用portlet的Web应用程序.
现在,当我想为一些不同的项目工作(创建一个web服务)时,每当我使用Eclipse IDE创建一个动态Web项目时,我都会收到一条错误,其中说 -
The SDK name of this PluginsSDK project is not set.
Run Code Online (Sandbox Code Playgroud)
我尝试下载一个新的Tomcat 7.0副本,并指向新项目仍然得到相同的错误.
任何人都可以建议我在这里可能缺少什么?
编辑:
我没有在eclipse中获得项目验证选项:
在通过css特异性概念时,我理解它计算为4部分的事实
1) inline (1000)
2) id (100)
3) class (10)
4) html elments (1)
Run Code Online (Sandbox Code Playgroud)
具有最高规则的CSS将应用于相应的元素.
我尝试了以下示例
创建了10个以上的课程
<div class="a1"> ....
<div class="a13" id="id1"> TEXT COLOR
</div> ...
</div>
Run Code Online (Sandbox Code Playgroud)
和css一样
.a1 .a2 .a3 .a4 .a5 .a6 .a7 .a8 .a9 .a10 .a11 .a12 .a13 {
color : red;
}
#id1 {
color: blue;
}
Run Code Online (Sandbox Code Playgroud)
现在,即使在这种情况下有13个类,权重是130.这比id大.
结果 - > JSFiddle CSS特异性
我尝试将输入键按下转换为选项卡而不提交表单,但只需删除提交表单按Enter键即可...
风景:
<tr>
<td><input type="text" id="tipoContacto1" name="tipoContacto1" class="form-control input-sm" onkeypress="removerEnter(event)"/></td>
<td><input type="text" id="nomeContacto1" name="nomeContacto1" class="form-control input-sm" onkeypress="removerEnter(event)"/></td>
Run Code Online (Sandbox Code Playgroud)
剧本:
function removerEnter(e) {
if (e.which == 13) {
//$(e).target.nextSibling;
//$(this).next('input').focus();
e.preventDefault();
}
}
Run Code Online (Sandbox Code Playgroud) html javascript model-view-controller asp.net-mvc form-submit
java ×2
android ×1
asp.net-mvc ×1
css ×1
eclipse ×1
form-submit ×1
html ×1
javascript ×1
liferay ×1
liferay-ide ×1
tomcat ×1