Impossible d'exécuter la construire à l'aide de Gradle la distribution "http://services.gradle.org/distributions/gradle-1.6-bin.zip'
Il y a une erreur dans l'Android Studio, si le projet est construit:
L'erreur dans l'Android Studio:
Gradle: Der Befehl "C:\Program" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':MyApplication:dexDebug'.
> Running C:\Users\Michael\AppData\Local\Android\android-studio\sdk\build-tools\android-4.2.2\dx.bat failed. See output
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
La sortie dans la fenêtre de commande pour gradlew compileDebug --stacktrace
est:
The TaskContainer.add() method has been deprecated and is scheduled to be remove
d in Gradle 2.0. Please use the create() method instead.
:MyApplication:prepareDebugDependencies
:MyApplication:compileDebugAidl UP-TO-DATE
:MyApplication:generateDebugBuildConfig UP-TO-DATE
:MyApplication:mergeDebugAssets UP-TO-DATE
:MyApplication:compileDebugRenderscript UP-TO-DATE
:MyApplication:mergeDebugResources UP-TO-DATE
:MyApplication:processDebugManifest UP-TO-DATE
:MyApplication:processDebugResources UP-TO-DATE
:MyApplication:compileDebug UP-TO-DATE
BUILD SUCCESSFUL
Total time: 27.437 secs
La sortie de la commande gradlew clean build
est:
The TaskContainer.add() method has been deprecated and is scheduled to be remove
d in Gradle 2.0. Please use the create() method instead.
:MyApplication:clean
:MyApplication:prepareDebugDependencies
:MyApplication:compileDebugAidl
:MyApplication:generateDebugBuildConfig
:MyApplication:mergeDebugAssets
:MyApplication:compileDebugRenderscript
:MyApplication:mergeDebugResources
:MyApplication:processDebugManifest
:MyApplication:processDebugResources
:MyApplication:compileDebug
:MyApplication:dexDebug
Der Befehl "C:\Program" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
:MyApplication:dexDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':MyApplication:dexDebug'.
> Running C:\Users\Michael\AppData\Local\Android\android-studio\sdk\build-tools\
android-4.2.2\dx.bat failed. See output
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
Total time: 33.459 secs
C:\Users\Michael\AndroidStudioProjects\MyApplicationProject>
Quelqu'un à une idée?
Vous devez vous connecter pour publier un commentaire.
Je ne parle pas allemand mais je sais que l'erreur - vous d'avoir un espace dans votre chemin d'accès qui n'est pas échappé à sur Windows (C:\Program les Fichiers).
Je n'ai aucune idée de l'endroit où l'espace est ou pourquoi vous êtes le déclenchement d'elle (j'ai utilisé avec succès l'intégration continue sur Windows pour construire Android Gradle projets et il a très bien fonctionné). Publier vos
build.gradle
, s'il vous plaît.Aussi, il y a un test rapide et facile - passer le tout à un chemin d'accès, sans espaces, et essayez à nouveau.
J'ai eu le même problème. Le problème venait de l'espace dans le chemin d'accès de l'exécutable java dans C:\Program les Fichiers[...].
J'ai résolu de faire un peu de modification à la fin du fichier [...]android-studio\sdk\build-outils\android 4.2.2\dx.chauve-souris;
fourni vous avez déjà mis en JAVA_HOME et JDK_HOME correctement, remplacez la dernière ligne:
avec cette ligne:
'C:\Program' is not recognized as an internal or external command
...je suis sûr que c'est lié. Un correctif pour que?