我试图在调试模式下运行应用程序,但我收到以下错误:
Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_11\bin\java.exe'' finished with non-zero exit value 2
Run Code Online (Sandbox Code Playgroud)
下面是我的build.gradle文件:
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'idea'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
compileSdkVersion 21
buildToolsVersion '21.1.1'
defaultConfig {
applicationId 'com.rayat.pricewiz'
minSdkVersion 17
targetSdkVersion 21
versionCode 1
versionName '1.0'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), …Run Code Online (Sandbox Code Playgroud) 我通过以下方式通过maven添加了facebook SDK:
compile 'com.facebook.android:facebook-android-sdk:3.21.1'
Run Code Online (Sandbox Code Playgroud)
当我编译时,我收到了我的\app\src\main\res\values\colors.xml文件错误
Error:Attribute "style" has already been defined
有什么建议?这非常令人费解.
摇篮:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion '21.1.1'
defaultConfig {
applicationId 'com.rayat.pricewiz'
minSdkVersion 17
targetSdkVersion 21
versionCode 1
versionName '1.0'
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile files('libs/androidmvcframework.jar')
compile files('libs/ksoap2-android-assembly-2.5.8-jar-with-dependencies.jar')
compile files('libs/universal-image-loader-1.9.2.jar')
// You must install or update the Google Repository through the SDK manager to use …Run Code Online (Sandbox Code Playgroud) 我正在定义EditText,如下所示.我希望Done按钮出现在软键盘中,但我得到了Return按钮.
<EditText
android:id="@+id/txtCommentContent"
android:layout_width="match_parent"
android:layout_height="160dp"
android:layout_margin="5dp"
android:background="@drawable/bg_edittext_gradient"
android:gravity="top|start"
android:hint="@string/strHintContentComment"
android:maxLines ="4"
android:imeOptions="actionDone"
android:padding="5dp"
android:textSize="15sp"
android:textColor="@color/black"
android:scrollHorizontally="false"/>
Run Code Online (Sandbox Code Playgroud)
谁能指出我做错了什么?