Gradlew bauen einfrieren bei mergeDebugResources

Ich baue Debug-App verwenden gradlew wie in Google Tutorial https://developer.android.com/training/basics/firstapp/running-app.html

Ich wurde Projektgebrauch erstellt

android create project --target 2 -g -v 2.9--name myAppName --path ./MyAppDirectory --activity MyActivity --package com.mypackage 

Und das ist meine build.gradle Datei

 buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:1.5.0' } } apply plugin: 'android' android { compileSdkVersion 'Google Inc.:Google APIs:23' buildToolsVersion '23.0.2' buildTypes { release { //runProguard false //minifyEnabled true proguardFile getDefaultProguardFile('proguard-android.txt') } } } 

Ich baue Debug-App verwenden Befehl

 $ ./gradlew assembleDebug 

Und das Gebäude ist bei 40% einfrieren

  :preBuild UP-TO-DATE :preDebugBuild UP-TO-DATE :checkDebugManifest :prepareDebugDependencies :compileDebugAidl UP-TO-DATE :compileDebugRenderscript UP-TO-DATE :generateDebugBuildConfig UP-TO-DATE :generateDebugAssets UP-TO-DATE :mergeDebugAssets UP-TO-DATE :generateDebugResValues UP-TO-DATE :generateDebugResources UP-TO-DATE :mergeDebugResources java.io.IOException: Cannot run program "/home/kanoonsantikul/android-sdk-linux/build-tools/23.0.2/aapt": error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047) at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:163) at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106) at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:187) at java.lang.ProcessImpl.start(ProcessImpl.java:130) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028) ... 4 more java.io.IOException: Cannot run program "/home/kanoonsantikul/android-sdk-linux/build-tools/23.0.2/aapt": error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047) at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:163) at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106) at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:187) Thread(png-cruncher_5) has a null payload at java.lang.ProcessImpl.start(ProcessImpl.java:130) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028) ... 4 more Thread(png-cruncher_3) has a null payload java.io.IOException: Cannot run program "/home/kanoonsantikul/android-sdk-linux/build-tools/23.0.2/aapt": error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047) at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:163) at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106) at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:187) at java.lang.ProcessImpl.start(ProcessImpl.java:130) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028) ... 4 more Thread(png-cruncher_2) has a null payload java.io.IOException: Cannot run program "/home/kanoonsantikul/android-sdk-linux/build-tools/23.0.2/aapt": error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047) at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:163) at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106) at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:187) at java.lang.ProcessImpl.start(ProcessImpl.java:130) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028) ... 4 more Thread(png-cruncher_1) has a null payload java.io.IOException: Cannot run program "/home/kanoonsantikul/android-sdk-linux/build-tools/23.0.2/aapt": error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047) at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:163) at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:106) at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:187) at java.lang.ProcessImpl.start(ProcessImpl.java:130) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028) ... 4 more > Building 40% > :mergeDebugResources 

"

  • Fehler werden "Gradle Version 1.10 ist erforderlich. Aktuelle Version ist 1.12. "Bei der Ausführung" gradle wrapper "?
  • Android APK aus Android Studio und Konsole gebaut haben unterschiedliche SHA Fingerabdrücke
  • Android-Fehler: Ausführung fehlgeschlagen für Task ': app: transformClassesWithDexForRelease'
  • Was macht ein gradlew
  • Gradle Preprocess Assets
  • Android Studio Build / Clean
  • Gradle build-info.xml nicht gefunden für Modul-App in Android Studio
  • Android Studio: "Verwenden Sie Standard-Gradle Wrapper" vs "Verwenden Sie benutzerdefinierte Gradle Wrapper"
  • One Solution collect form web for “Gradlew bauen einfrieren bei mergeDebugResources”

    Wahrscheinlich haben Sie ein 64-Bit-System und noch einige 32bits fehlen für Android-Entwicklung.

    Wenn Sie auf einem 64bit-Ubuntu-System laufen, sehen Sie 32-Bit-libs für Ubuntu 64-Bit Android-Entwicklung für weitere Details.

    Wenn Sie auf einem 64-Bit-Fedora-System laufen, finden Sie weitere Informationen in der Installation von android-sdk-on-64-bit-fedora .

    Das Android ist ein Google Android Fan-Website, Alles ├╝ber Android Phones, Android Wear, Android Dev und Android Spiele Apps und so weiter.