Android StudioでGradleを使用した際のBuildエラーのトラブルシューティング

cd {#.gradlewがあるディレクトリ}

gradlewの出力を見てみる

コマンド

$ ./gradlew --stacktrace --info assemble{#プロダクトフレーバー名}{#ビルドタイプ名}
↓
$ ./gradlew --stacktrace --info assembleFreeDebug

出力

$ ./gradlew --stacktrace --info assembleDebug
Starting Build
Settings evaluated using settings file '/Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/settings.gradle'.
Projects loaded. Root project using build file '/Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/build.gradle'.
Included projects: [root project 'NavigationDrawerSample', project ':app']
Evaluating root project 'NavigationDrawerSample' using build file '/Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/build.gradle'.
Evaluating project ':app' using build file '/Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build.gradle'.
WARNING: packageNameSuffix is deprecated (and will soon stop working); change to "applicationIdSuffix" instead
WARNING: packageNameSuffix is deprecated (and will soon stop working); change to "applicationIdSuffix" instead
Relying on packaging to define the extension of the main artifact has been deprecated and is scheduled to be removed in Gradle 2.0
All projects evaluated.
Selected primary task 'assembleDebug'
Tasks to be executed: [task ':app:preBuild', task ':app:preDebugBuild', task ':app:checkDebugManifest', task ':app:preBetaBuild', task ':app:preDebugBuild', task ':app:preReleaseBuild', task ':app:prepareComAndroidSupportSupportV42000Library', task ':app:prepareDebugDependencies', task ':app:compileDebugAidl', task ':app:compileDebugRenderscript', task ':app:generateDebugBuildConfig', task ':app:generateDebugAssets', task ':app:mergeDebugAssets', task ':app:generateDebugResValues', task ':app:generateDebugResources', task ':app:mergeDebugResources', task ':app:processDebugManifest', task ':app:processDebugResources', task ':app:generateDebugSources', task ':app:compileDebugJava', task ':app:lintVitalDebug', task ':app:compileDebugNdk', task ':app:preDexDebug', task ':app:dexDebug', task ':app:processDebugJavaRes', task ':app:packageDebug', task ':app:assembleDebug']
:app:preBuild (Thread[main,5,main]) started.
:app:preBuild
Executing task ':app:preBuild' (up-to-date check took 0.0 secs) due to:
  Task has not declared any outputs.
:app:preBuild (Thread[main,5,main]) completed. Took 0.237 secs.
:app:preDebugBuild (Thread[main,5,main]) started.
:app:preDebugBuild
Skipping task ':app:preDebugBuild' as it has no actions.
:app:preDebugBuild (Thread[main,5,main]) completed. Took 0.0010 secs.
:app:checkDebugManifest (Thread[main,5,main]) started.
:app:checkDebugManifest
Executing task ':app:checkDebugManifest' (up-to-date check took 0.0 secs) due to:
  Task has not declared any outputs.
:app:checkDebugManifest (Thread[main,5,main]) completed. Took 0.0020 secs.
:app:preBetaBuild (Thread[main,5,main]) started.
:app:preBetaBuild
Skipping task ':app:preBetaBuild' as it has no actions.
:app:preBetaBuild (Thread[main,5,main]) completed. Took 0.0020 secs.
:app:preDebugBuild (Thread[main,5,main]) started.
:app:preDebugBuild
Skipping task ':app:preDebugBuild' as it has no actions.
:app:preDebugBuild (Thread[main,5,main]) completed. Took 0.0010 secs.
:app:preReleaseBuild (Thread[main,5,main]) started.
:app:preReleaseBuild
Skipping task ':app:preReleaseBuild' as it has no actions.
:app:preReleaseBuild (Thread[main,5,main]) completed. Took 0.0010 secs.
:app:prepareComAndroidSupportSupportV42000Library (Thread[main,5,main]) started.
:app:prepareComAndroidSupportSupportV42000Library
Skipping task ':app:prepareComAndroidSupportSupportV42000Library' as it is up-to-date (took 0.032 secs).
:app:prepareComAndroidSupportSupportV42000Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42000Library (Thread[main,5,main]) completed. Took 0.037 secs.
:app:prepareDebugDependencies (Thread[main,5,main]) started.
:app:prepareDebugDependencies
Executing task ':app:prepareDebugDependencies' (up-to-date check took 0.0 secs) due to:
  Task has not declared any outputs.
:app:prepareDebugDependencies (Thread[main,5,main]) completed. Took 0.0030 secs.
:app:compileDebugAidl (Thread[main,5,main]) started.
:app:compileDebugAidl
Skipping task ':app:compileDebugAidl' as it is up-to-date (took 0.013 secs).
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugAidl (Thread[main,5,main]) completed. Took 0.015 secs.
:app:compileDebugRenderscript (Thread[main,5,main]) started.
:app:compileDebugRenderscript
Skipping task ':app:compileDebugRenderscript' as it is up-to-date (took 0.019 secs).
:app:compileDebugRenderscript UP-TO-DATE
:app:compileDebugRenderscript (Thread[main,5,main]) completed. Took 0.028 secs.
:app:generateDebugBuildConfig (Thread[main,5,main]) started.
:app:generateDebugBuildConfig
Skipping task ':app:generateDebugBuildConfig' as it is up-to-date (took 0.01 secs).
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugBuildConfig (Thread[main,5,main]) completed. Took 0.052 secs.
:app:generateDebugAssets (Thread[main,5,main]) started.
:app:generateDebugAssets
Skipping task ':app:generateDebugAssets' as it has no actions.
:app:generateDebugAssets UP-TO-DATE
:app:generateDebugAssets (Thread[main,5,main]) completed. Took 0.0020 secs.
:app:mergeDebugAssets (Thread[main,5,main]) started.
:app:mergeDebugAssets
Skipping task ':app:mergeDebugAssets' as it is up-to-date (took 0.0090 secs).
:app:mergeDebugAssets UP-TO-DATE
:app:mergeDebugAssets (Thread[main,5,main]) completed. Took 0.011 secs.
:app:generateDebugResValues (Thread[main,5,main]) started.
:app:generateDebugResValues
Skipping task ':app:generateDebugResValues' as it is up-to-date (took 0.0030 secs).
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResValues (Thread[main,5,main]) completed. Took 0.0060 secs.
:app:generateDebugResources (Thread[main,5,main]) started.
:app:generateDebugResources
Skipping task ':app:generateDebugResources' as it has no actions.
:app:generateDebugResources UP-TO-DATE
:app:generateDebugResources (Thread[main,5,main]) completed. Took 0.0010 secs.
:app:mergeDebugResources (Thread[main,5,main]) started.
:app:mergeDebugResources
Skipping task ':app:mergeDebugResources' as it is up-to-date (took 0.029 secs).
:app:mergeDebugResources UP-TO-DATE
:app:mergeDebugResources (Thread[main,5,main]) completed. Took 0.033 secs.
:app:processDebugManifest (Thread[main,5,main]) started.
:app:processDebugManifest
Skipping task ':app:processDebugManifest' as it is up-to-date (took 0.0050 secs).
:app:processDebugManifest UP-TO-DATE
:app:processDebugManifest (Thread[main,5,main]) completed. Took 0.029 secs.
:app:processDebugResources (Thread[main,5,main]) started.
:app:processDebugResources
Skipping task ':app:processDebugResources' as it is up-to-date (took 0.02 secs).
:app:processDebugResources UP-TO-DATE
:app:processDebugResources (Thread[main,5,main]) completed. Took 0.03 secs.
:app:generateDebugSources (Thread[main,5,main]) started.
:app:generateDebugSources
Skipping task ':app:generateDebugSources' as it has no actions.
:app:generateDebugSources UP-TO-DATE
:app:generateDebugSources (Thread[main,5,main]) completed. Took 0.0010 secs.
:app:compileDebugJava (Thread[main,5,main]) started.
:app:compileDebugJava
Skipping task ':app:compileDebugJava' as it is up-to-date (took 0.031 secs).
:app:compileDebugJava UP-TO-DATE
:app:compileDebugJava (Thread[main,5,main]) completed. Took 0.043 secs.
:app:lintVitalDebug (Thread[main,5,main]) started.
:app:lintVitalDebug
Executing task ':app:lintVitalDebug' (up-to-date check took 0.0 secs) due to:
  Task has not declared any outputs.
:app:lintVitalDebug (Thread[main,5,main]) completed. Took 1.381 secs.
:app:compileDebugNdk (Thread[main,5,main]) started.
:app:compileDebugNdk
Skipping task ':app:compileDebugNdk' as it is up-to-date (took 0.0040 secs).
:app:compileDebugNdk UP-TO-DATE
:app:compileDebugNdk (Thread[main,5,main]) completed. Took 0.0080 secs.
:app:preDexDebug (Thread[main,5,main]) started.
:app:preDexDebug
Skipping task ':app:preDexDebug' as it is up-to-date (took 0.0050 secs).
:app:preDexDebug UP-TO-DATE
:app:preDexDebug (Thread[main,5,main]) completed. Took 0.0060 secs.
:app:dexDebug (Thread[main,5,main]) started.
:app:dexDebug
Skipping task ':app:dexDebug' as it is up-to-date (took 0.0070 secs).
:app:dexDebug UP-TO-DATE
:app:dexDebug (Thread[main,5,main]) completed. Took 0.01 secs.
:app:processDebugJavaRes (Thread[main,5,main]) started.
:app:processDebugJavaRes
Skipping task ':app:processDebugJavaRes' as it has no source files.
:app:processDebugJavaRes UP-TO-DATE
:app:processDebugJavaRes (Thread[main,5,main]) completed. Took 0.0020 secs.
:app:packageDebug (Thread[main,5,main]) started.
:app:packageDebug
Skipping task ':app:packageDebug' as it is up-to-date (took 0.016 secs).
:app:packageDebug UP-TO-DATE
:app:packageDebug (Thread[main,5,main]) completed. Took 0.022 secs.
:app:assembleDebug (Thread[main,5,main]) started.
:app:assembleDebug
Skipping task ':app:assembleDebug' as it has no actions.
:app:assembleDebug (Thread[main,5,main]) completed. Took 0.0010 secs.

BUILD SUCCESSFUL

Total time: 7.513 secs
Stopped 0 compiler daemon(s).

エラーを発生させてみる

$ ./gradlew --stacktrace --info assembleDebug
Starting Build
Settings evaluated using settings file '/Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/settings.gradle'.
Projects loaded. Root project using build file '/Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/build.gradle'.
Included projects: [root project 'NavigationDrawerSample', project ':app']
Evaluating root project 'NavigationDrawerSample' using build file '/Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/build.gradle'.
Evaluating project ':app' using build file '/Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build.gradle'.
WARNING: packageNameSuffix is deprecated (and will soon stop working); change to "applicationIdSuffix" instead
WARNING: packageNameSuffix is deprecated (and will soon stop working); change to "applicationIdSuffix" instead
Relying on packaging to define the extension of the main artifact has been deprecated and is scheduled to be removed in Gradle 2.0
All projects evaluated.
file or directory '/Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/pre-dexed/Debug', not found
Selected primary task 'assembleDebug'
Tasks to be executed: [task ':app:preBuild', task ':app:preDebugBuild', task ':app:checkDebugManifest', task ':app:preBetaBuild', task ':app:preDebugBuild', task ':app:preReleaseBuild', task ':app:prepareComAndroidSupportSupportV42000Library', task ':app:prepareDebugDependencies', task ':app:compileDebugAidl', task ':app:compileDebugRenderscript', task ':app:generateDebugBuildConfig', task ':app:generateDebugAssets', task ':app:mergeDebugAssets', task ':app:generateDebugResValues', task ':app:generateDebugResources', task ':app:mergeDebugResources', task ':app:processDebugManifest', task ':app:processDebugResources', task ':app:generateDebugSources', task ':app:compileDebugJava', task ':app:lintVitalDebug', task ':app:compileDebugNdk', task ':app:preDexDebug', task ':app:dexDebug', task ':app:processDebugJavaRes', task ':app:packageDebug', task ':app:assembleDebug']
:app:preBuild (Thread[main,5,main]) started.
:app:preBuild
Executing task ':app:preBuild' (up-to-date check took 0.0 secs) due to:
  Task has not declared any outputs.
:app:preBuild (Thread[main,5,main]) completed. Took 0.234 secs.
:app:preDebugBuild (Thread[main,5,main]) started.
:app:preDebugBuild
Skipping task ':app:preDebugBuild' as it has no actions.
:app:preDebugBuild (Thread[main,5,main]) completed. Took 0.0010 secs.
:app:checkDebugManifest (Thread[main,5,main]) started.
:app:checkDebugManifest
Executing task ':app:checkDebugManifest' (up-to-date check took 0.0 secs) due to:
  Task has not declared any outputs.
:app:checkDebugManifest (Thread[main,5,main]) completed. Took 0.0030 secs.
:app:preBetaBuild (Thread[main,5,main]) started.
:app:preBetaBuild
Skipping task ':app:preBetaBuild' as it has no actions.
:app:preBetaBuild (Thread[main,5,main]) completed. Took 0.0020 secs.
:app:preDebugBuild (Thread[main,5,main]) started.
:app:preDebugBuild
Skipping task ':app:preDebugBuild' as it has no actions.
:app:preDebugBuild (Thread[main,5,main]) completed. Took 0.0010 secs.
:app:preReleaseBuild (Thread[main,5,main]) started.
:app:preReleaseBuild
Skipping task ':app:preReleaseBuild' as it has no actions.
:app:preReleaseBuild (Thread[main,5,main]) completed. Took 0.0010 secs.
:app:prepareComAndroidSupportSupportV42000Library (Thread[main,5,main]) started.
:app:prepareComAndroidSupportSupportV42000Library
Skipping task ':app:prepareComAndroidSupportSupportV42000Library' as it is up-to-date (took 0.038 secs).
:app:prepareComAndroidSupportSupportV42000Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42000Library (Thread[main,5,main]) completed. Took 0.042 secs.
:app:prepareDebugDependencies (Thread[main,5,main]) started.
:app:prepareDebugDependencies
Executing task ':app:prepareDebugDependencies' (up-to-date check took 0.0 secs) due to:
  Task has not declared any outputs.
:app:prepareDebugDependencies (Thread[main,5,main]) completed. Took 0.0040 secs.
:app:compileDebugAidl (Thread[main,5,main]) started.
:app:compileDebugAidl
Executing task ':app:compileDebugAidl' (up-to-date check took 0.0090 secs) due to:
  Output file /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/incremental/aidl/Debug has changed.
  Output file /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/generated/source/aidl/Debug has changed.
  Output file /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/incremental/aidl/Debug/dependency.store has been removed.
All input files are considered out-of-date for incremental task ':app:compileDebugAidl'.
:app:compileDebugAidl (Thread[main,5,main]) completed. Took 0.062 secs.
:app:compileDebugRenderscript (Thread[main,5,main]) started.
:app:compileDebugRenderscript
Executing task ':app:compileDebugRenderscript' (up-to-date check took 0.011 secs) due to:
  Output file /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/generated/source/rs/Debug has changed.
  Output file /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/generated/res/rs/Debug has changed.
  Output file /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/rs/Debug/lib has changed.
:app:compileDebugRenderscript (Thread[main,5,main]) completed. Took 0.05 secs.
:app:generateDebugBuildConfig (Thread[main,5,main]) started.
:app:generateDebugBuildConfig
Executing task ':app:generateDebugBuildConfig' (up-to-date check took 0.01 secs) due to:
  Output file /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/generated/source/buildConfig/Debug has changed.
  Output file /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/generated/source/buildConfig/Debug/com/example/android/navigationdrawerexample/BuildConfig.java has been removed.
:app:generateDebugBuildConfig (Thread[main,5,main]) completed. Took 0.069 secs.
:app:generateDebugAssets (Thread[main,5,main]) started.
:app:generateDebugAssets
Skipping task ':app:generateDebugAssets' as it has no actions.
:app:generateDebugAssets UP-TO-DATE
:app:generateDebugAssets (Thread[main,5,main]) completed. Took 0.0030 secs.
:app:mergeDebugAssets (Thread[main,5,main]) started.
:app:mergeDebugAssets
Executing task ':app:mergeDebugAssets' (up-to-date check took 0.0050 secs) due to:
  Output file /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/incremental/mergeAssets/Debug has changed.
  Output file /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/assets/Debug has changed.
  Output file /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/incremental/mergeAssets/Debug/merger.xml has been removed.
All input files are considered out-of-date for incremental task ':app:mergeDebugAssets'.
Unable do incremental execution: full task run
:app:mergeDebugAssets (Thread[main,5,main]) completed. Took 0.049 secs.
:app:generateDebugResValues (Thread[main,5,main]) started.
:app:generateDebugResValues
Skipping task ':app:generateDebugResValues' as it is up-to-date (took 0.0020 secs).
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResValues (Thread[main,5,main]) completed. Took 0.0040 secs.
:app:generateDebugResources (Thread[main,5,main]) started.
:app:generateDebugResources
Skipping task ':app:generateDebugResources' as it has no actions.
:app:generateDebugResources (Thread[main,5,main]) completed. Took 0.0010 secs.
:app:mergeDebugResources (Thread[main,5,main]) started.
:app:mergeDebugResources
Executing task ':app:mergeDebugResources' (up-to-date check took 0.017 secs) due to:
  Output file /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/incremental/mergeResources/Debug has changed.
  Output file /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug has changed.
  Output file /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-hdpi-v4/drawer_shadow.9.png has been removed.
All input files are considered out-of-date for incremental task ':app:mergeDebugResources'.
Unable do incremental execution: full task run
command: /Applications/Android Studio.app/sdk/build-tools/android-4.4W/aapt s -i /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-hdpi/ic_launcher.png -o /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-hdpi-v4/ic_launcher.png
command: /Applications/Android Studio.app/sdk/build-tools/android-4.4W/aapt s -i /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-mdpi/action_search.png -o /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-mdpi-v4/action_search.png
command: /Applications/Android Studio.app/sdk/build-tools/android-4.4W/aapt s -i /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-xhdpi/ic_drawer.png -o /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-xhdpi-v4/ic_drawer.png
command: /Applications/Android Studio.app/sdk/build-tools/android-4.4W/aapt s -i /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-mdpi/drawer_shadow.9.png -o /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-mdpi-v4/drawer_shadow.9.png
Crunching single PNG file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-xhdpi/ic_drawer.png
    Output file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-xhdpi-v4/ic_drawer.png
Crunching single PNG file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-hdpi/ic_launcher.png
Crunching single PNG file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-mdpi/drawer_shadow.9.png
    Output file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-mdpi-v4/drawer_shadow.9.png
Crunching single PNG file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-mdpi/action_search.png
    Output file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-mdpi-v4/action_search.png
command: /Applications/Android Studio.app/sdk/build-tools/android-4.4W/aapt s -i /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-xhdpi/ic_launcher.png -o /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-xhdpi-v4/ic_launcher.png
    Output file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-hdpi-v4/ic_launcher.png
command: /Applications/Android Studio.app/sdk/build-tools/android-4.4W/aapt s -i /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-xhdpi/drawer_shadow.9.png -o /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-xhdpi-v4/drawer_shadow.9.png
command: /Applications/Android Studio.app/sdk/build-tools/android-4.4W/aapt s -i /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-hdpi/drawer_shadow.9.png -o /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-hdpi-v4/drawer_shadow.9.png
command: /Applications/Android Studio.app/sdk/build-tools/android-4.4W/aapt s -i /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-mdpi/ic_launcher.png -o /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-mdpi-v4/ic_launcher.png
Crunching single PNG file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-hdpi/drawer_shadow.9.png
Crunching single PNG file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-xhdpi/drawer_shadow.9.png
Crunching single PNG file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-xhdpi/ic_launcher.png
Crunching single PNG file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-mdpi/ic_launcher.png
    Output file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-xhdpi-v4/ic_launcher.png
    Output file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-xhdpi-v4/drawer_shadow.9.png
    Output file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-hdpi-v4/drawer_shadow.9.png
    Output file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-mdpi-v4/ic_launcher.png
command: /Applications/Android Studio.app/sdk/build-tools/android-4.4W/aapt s -i /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-xhdpi/action_search.png -o /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-xhdpi-v4/action_search.png
command: /Applications/Android Studio.app/sdk/build-tools/android-4.4W/aapt s -i /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-xxhdpi/ic_launcher.png -o /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-xxhdpi-v4/ic_launcher.png
command: /Applications/Android Studio.app/sdk/build-tools/android-4.4W/aapt s -i /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-mdpi/ic_drawer.png -o /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-mdpi-v4/ic_drawer.png
command: /Applications/Android Studio.app/sdk/build-tools/android-4.4W/aapt s -i /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-hdpi/ic_drawer.png -o /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-hdpi-v4/ic_drawer.png
Crunching single PNG file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-mdpi/ic_drawer.png
    Output file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-mdpi-v4/ic_drawer.png
command: /Applications/Android Studio.app/sdk/build-tools/android-4.4W/aapt s -i /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-hdpi/action_search.png -o /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-hdpi-v4/action_search.png
Crunching single PNG file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-hdpi/action_search.png
Crunching single PNG file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-xhdpi/action_search.png
    Output file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-xhdpi-v4/action_search.png
    Output file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-hdpi-v4/action_search.png
Crunching single PNG file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-hdpi/ic_drawer.png
    Output file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-hdpi-v4/ic_drawer.png
Crunching single PNG file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/res/drawable-xxhdpi/ic_launcher.png
    Output file: /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug/drawable-xxhdpi-v4/ic_launcher.png
:app:mergeDebugResources (Thread[main,5,main]) completed. Took 0.341 secs.
:app:processDebugManifest (Thread[main,5,main]) started.
:app:processDebugManifest
Executing task ':app:processDebugManifest' (up-to-date check took 0.0030 secs) due to:
  Output file /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/manifests/Debug/AndroidManifest.xml has changed.
  Output file /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/manifests/Debug/AndroidManifest.xml has been removed.
All input files are considered out-of-date for incremental task ':app:processDebugManifest'.
Loading library manifest /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/exploded-aar/com.android.support/support-v4/20.0.0/AndroidManifest.xml
Merging main manifest /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/AndroidManifest.xml

Merging library manifest /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/exploded-aar/com.android.support/support-v4/20.0.0/AndroidManifest.xml
Merging manifest with lower com.android.support:support-v4:20.0.0:15:1
Merging uses-sdk with lower com.android.support:support-v4:20.0.0:16:5
Merging application with lower com.android.support:support-v4:20.0.0:17:5
Merging result:SUCCESS
Merged manifest saved to /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/manifests/Debug/AndroidManifest.xml
:app:processDebugManifest (Thread[main,5,main]) completed. Took 0.121 secs.
:app:processDebugResources (Thread[main,5,main]) started.
:app:processDebugResources
Executing task ':app:processDebugResources' (up-to-date check took 0.053 secs) due to:
  Output file /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/symbols/Debug has changed.
  Output file /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/libs/app-Debug.ap_ has changed.
  Output file /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/generated/source/r/Debug has changed.
All input files are considered out-of-date for incremental task ':app:processDebugResources'.
command: /Applications/Android Studio.app/sdk/build-tools/android-4.4W/aapt package -f --no-crunch -I /Applications/Android Studio.app/sdk/platforms/android-20/android.jar -M /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/manifests/Debug/AndroidManifest.xml -S /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/res/Debug -A /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/assets/Debug -m -J /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/generated/source/r/Debug -F /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/libs/app-Debug.ap_ --custom-package com.example.android.navigationdrawerexample -0 apk --output-text-symbols /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/symbols/Debug
:app:processDebugResources (Thread[main,5,main]) completed. Took 0.152 secs.
:app:generateDebugSources (Thread[main,5,main]) started.
:app:generateDebugSources
Skipping task ':app:generateDebugSources' as it has no actions.
:app:generateDebugSources (Thread[main,5,main]) completed. Took 0.0010 secs.
:app:compileDebugJava (Thread[main,5,main]) started.
:app:compileDebugJava
Executing task ':app:compileDebugJava' (up-to-date check took 0.011 secs) due to:
  Output file /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/dependency-cache/Debug has changed.
  Output file /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/classes/Debug has changed.
  Output file /Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/build/intermediates/classes/Debug/com/example/android/navigationdrawerexample/R$layout.class has been removed.
All input files are considered out-of-date for incremental task ':app:compileDebugJava'.
Compiling with JDK Java compiler API.
/Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/java/com/example/android/navigationdrawerexample/activities/MainActivity.java:180: <identifier> expected
hoge
    ^
/Users/k_higo/AndroidStudioProjects/NavigationDrawerSample/app/src/main/java/com/example/android/navigationdrawerexample/activities/MainActivity.java:181: <identifier> expected
    @Override
             ^
2 errors
:app:compileDebugJava FAILED
:app:compileDebugJava (Thread[main,5,main]) completed. Took 0.144 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --debug option to get more log output.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJava'.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
    at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
    at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:289)
    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)
    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)
    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:86)
    at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)
    at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
    at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67)
    at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:54)
    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:166)
    at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113)
    at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:64)
    at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)
    at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:35)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
    at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)
    at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:201)
    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:174)
    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:170)
    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:139)
    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
    at org.gradle.launcher.Main.doAction(Main.java:46)
    at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
    at org.gradle.launcher.Main.main(Main.java:37)
    at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:50)
    at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32)
    at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
    at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:33)
    at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:130)
    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
Caused by: org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error output for details.
    at org.gradle.api.internal.tasks.compile.jdk6.Jdk6JavaCompiler.execute(Jdk6JavaCompiler.java:47)
    at org.gradle.api.internal.tasks.compile.jdk6.Jdk6JavaCompiler.execute(Jdk6JavaCompiler.java:38)
    at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:96)
    at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:49)
    at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:35)
    at org.gradle.api.internal.tasks.compile.DelegatingJavaCompiler.execute(DelegatingJavaCompiler.java:29)
    at org.gradle.api.internal.tasks.compile.DelegatingJavaCompiler.execute(DelegatingJavaCompiler.java:20)
    at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:33)
    at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:24)
    at org.gradle.api.tasks.compile.Compile.performCompilation(Compile.java:165)
    at org.gradle.api.tasks.compile.Compile.compile(Compile.java:153)
    at org.gradle.api.tasks.compile.Compile.compile(Compile.java:87)
    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)
    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.doExecute(AnnotationProcessingTaskFactory.java:236)
    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:212)
    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.execute(AnnotationProcessingTaskFactory.java:223)
    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:201)
    at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:533)
    at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:516)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
    ... 46 more


BUILD FAILED

Total time: 6.906 secs
Stopped 0 compiler daemon(s).