質問です。 AndroidStudio ビルドエラーで実行出来きなくて本当に困っています。 1ヶ月程前は実行出来ていた環境でした。 環境 OSX 10.10.4 AndroidStudio 1.2.2 jdk1.7.0_79.jdk ソースと参考にしたURLを下に載せました。 buildscript { ext.kotlin_version = '0.12.412' repositories { jcenter() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:1.2.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version" } } apply plugin: "com.android.application" apply plugin: 'kotlin-android' repositories { jcenter() mavenCentral() } android { compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig { applicationId "jp.trustridge.macaroni.app" minSdkVersion 16 targetSdkVersion 22 versionCode 10 versionName "1.6" } compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 } buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } sourceSets { main.java.srcDirs += 'src/main/kotlin' } } dependencies { compile 'com.android.support:support-v13:+' compile 'com.android.support:appcompat-v7:+' compile 'com.android.support:recyclerview-v7:+' compile 'com.google.android.gms:play-services:+' compile "org.jetbrains.kotlin:kotlin-stdlib:+" compile 'com.parse.bolts:bolts-android:+' compile fileTree(dir: 'libs', include: ['*.jar']) // volley compile 'com.mcxiaoke.volley:library:+' // realm compile 'io.realm:realm-android:+' // adjust //compile 'com.adjust.sdk:adjust-android:+' } エラー文 Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2 参考URL http://markfour.blogspot.jp/2015/03/androidsdkerrorexecution-failed-for.html 参考にしたスタックオーバーフローの質問 『[AndroidStudio(gradle)でビルドエラー Process finished with non-zero exit value 2](http://ja.stackoverflow.com/q/8020/7290)』 試した事 `compile fileTree(dir: 'libs', include: ['*.jar'])`をコメントアウト→エラー(`Warning:(5, 31) 'ActionBarActivity' is deprecated. Deprecated in Java`など) //以下をコメントアウトでエラー compile 'com.android.support:support-v13:+' compile 'com.android.support:appcompat-v7:+' compile 'com.android.support:recyclerview-v7:+' compile 'com.google.android.gms:play-services:+' compile "org.jetbrains.kotlin:kotlin-stdlib:+" compile 'com.parse.bolts:bolts-android:+' // volley compile 'com.mcxiaoke.volley:library:+' // realm compile 'io.realm:realm-android:+' Error:(1) Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. Error:(10, 21) No resource found that matches the given name: attr 'colorAccent'. Error:(4, 21) No resource found that matches the given name: attr 'colorPrimary'. Error:(7, 21) No resource found that matches the given name: attr 'colorPrimaryDark'. Error:Execution failed for task ':app:processDebugResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/makki/Library/Android/sdk/build-tools/22.0.1/aapt'' finished with non-zero exit value 1 追記8/10 ・参考にしたサイトその3 http://markfour.blogspot.jp/2015/03/androidsdkerrorexecution-failed-for.html 重複エラーの修正の仕方が書いてありますが、自分場合どのようにすれば良いかわかりません。 追記8/10 (2) [参照先][1]のコマンドラインで直接gradleを実行方法がわかりません。 参考サイトを教えていただけると助かります。[こちらで質問しています。][2] [1]: http://ja.stackoverflow.com/questions/8020/androidstudiogradle%E3%81%A7%E3%83%93%E3%83%AB%E3%83%89%E3%82%A8%E3%83%A9%E3%83%BC-process-finished-with-non-zero-exit-value-2/12096#12096 [2]: http://ja.stackoverflow.com/questions/14236/gradle%E3%82%92%E3%82%BF%E3%83%BC%E3%83%9F%E3%83%8A%E3%83%AB%E3%81%A7%E5%AE%9F%E8%A1%8C%E3%81%97%E3%81%9F%E3%81%84 追記8/11 ターミナルからの実行結果 makki-no-MacBook-Pro:gnoccho makki$ ./gradlew -i Starting Build Settings evaluated using settings file '/Users/makki/gnoccho/settings.gradle'. Projects loaded. Root project using build file '/Users/makki/gnoccho/build.gradle'. Included projects: [root project 'gnoccho', project ':app'] Evaluating root project 'gnoccho' using build file '/Users/makki/gnoccho/build.gradle'. Evaluating project ':app' using build file '/Users/makki/gnoccho/app/build.gradle'. Creating configuration compile. Creating configuration apk. Creating configuration provided. Creating configuration wearApp. Creating configuration androidTestCompile. Creating configuration androidTestApk. Creating configuration androidTestProvided. Creating configuration androidTestWearApp. Creating configuration testCompile. Creating configuration testApk. Creating configuration testProvided. Creating configuration testWearApp. Creating configuration debugCompile. Creating configuration debugApk. Creating configuration debugProvided. Creating configuration debugWearApp. Creating configuration testDebugCompile. Creating configuration testDebugApk. Creating configuration testDebugProvided. Creating configuration testDebugWearApp. Creating configuration releaseCompile. Creating configuration releaseApk. Creating configuration releaseProvided. Creating configuration releaseWearApp. Creating configuration testReleaseCompile. Creating configuration testReleaseApk. Creating configuration testReleaseProvided. Creating configuration testReleaseWearApp. All projects evaluated. No tasks specified. Using default task 'help' Selected primary task 'help' from project : Tasks to be executed: [task ':help'] :help (Thread[main,5,main]) started. :help Executing task ':help' (up-to-date check took 0.0 secs) due to: Task has not declared any outputs. Welcome to Gradle 2.2.1. To run a build, run gradlew <task> ... To see a list of available tasks, run gradlew tasks To see a list of command-line options, run gradlew --help :help (Thread[main,5,main]) completed. Took 0.087 secs. BUILD SUCCESSFUL Total time: 10.883 secs Stopped 0 compiler daemon(s). makki-no-MacBook-Pro:gnoccho makki$