2016-04-09 6 views
1

を使用して新しいプロジェクトを生成することはできませんし、私はyo gradle-kotlinを実行すると、以下のエラーを得ました。私の最初のHello Worldを動作させるために私は何ができますか? は私が<code>brew install Caskroom/cask/android-studio</code></p> <p>を使用してMac上でAndroidのメーカーをインストールしヨーマン発電機のGradle + Kotlin

あなたは

✔ /Volumes/Git/android/kotlin-hello-world 
10:53 $ yo gradle-kotlin 

    _-----_ 
    |  | .--------------------------. 
    |--(o)--| |  Welcome to the  | 
    `---------´ | incredible Gradle+Kotlin | 
    (_´U`_) |  generator!  | 
    /___A___\ '--------------------------' 
    | ~ |  
    __'.___.'__ 
´ ` |° ´ Y ` 

    Detecting installed Gradle version... 
    Fetching latest Kotlin version from Maven Central... 
✔ Fetched latest Kotlin version: 1.0.1-2 
✔ Detected installed Gradle version: 2.12 
? What's your project name? kotlin hello world 
? What Gradle version would you like to use? 2.12 
? What Kotlin version would you like to use? 1.0.1-2 
? Do you want to use Kotlin Reflection? Yes 
? Would you like to use IDEA Gradle plugin? Yes 
identical .gitignore 
identical src/main/kotlin/.gitkeep 
identical src/test/kotlin/.gitkeep 
identical build.gradle 
identical gradle.properties 
identical settings.gradle 
    Executing 'gradle wrapper' command... 

✔ Done executing 'gradle wrapper' command. 
    Executing Gradle tasks: idea build 
internal/child_process.js:298 
    throw errnoException(err, 'spawn'); 
    ^

Error: spawn EACCES 
    at exports._errnoException (util.js:856:11) 
    at ChildProcess.spawn (internal/child_process.js:298:11) 
    at Object.exports.spawn (child_process.js:362:9) 
    at Function.spawn (/usr/local/lib/node_modules/generator-gradle-kotlin/node_modules/cross-spawn-async/index.js:13:18) 
    at spawn (/usr/local/lib/node_modules/generator-gradle-kotlin/node_modules/cross-spawn/index.js:34:23) 
    at GradleKotlinGenerator.spawnCommand (/usr/local/lib/node_modules/generator-gradle-kotlin/node_modules/yeoman-generator/lib/actions/spawn_command.js:20:10) 
    at ChildProcess.<anonymous> (/usr/local/lib/node_modules/generator-gradle-kotlin/generators/app/gradle-kotlin.coffee:78:8) 
    at emitTwo (events.js:100:13) 
    at ChildProcess.emit (events.js:185:7) 
    at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) 
+0

あなたのマシンにjre/jdkがインストールされていますか? – IRus

+0

はい、私はアンドロイド-SDK 醸造は、Android NDK- 醸造キャスクは、JavaをインストールするインストールのGradle 醸造をインストールするのmaven 醸造をインストールアリ 醸造をインストールインストール 醸造経由でJavaのインストール – Believe2014

答えて

1

私はそれを修正しましたありがとうございました。

OSX固有のバグだったのですが、それはプラットフォームが誤って検出されたため、./gradlew.batを呼び出そうとしましたが、実際にはEACCESエラーの原因である.batファイルではありませんこの.batには+ xの権限がなかったということでした。ジェネレータを1.1.1にアップデートするだけで問題ありません。