0
私がしようとしているが(マックシエラ上)コルドバで始めるには:https://cordova.apache.org/#getstartedMacでCordova for Androidが壊れていますか?
私はすでにAndroidのスタジオ(バージョン2.2.2)がインストールされていると私は24
だから私は従うAndroidのSDKを使用しています入門ガイド...
npm install -g cordova
cordova --version
私はコルドバ6.4.0を持っています。
cordova create hello
cd hello
cordova platform add android
これはだけを動作するはずですが、私は次のエラーを取得する:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> You have not accepted the license agreements of the following SDK components:
[Android SDK Platform 24].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
* 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: 28.559 secs
Failed to install 'cordova-plugin-whitelist':Error: /Users/richardeng/hello/platforms/android/gradlew: Command failed with exit code 1
at ChildProcess.whenDone (/Users/richardeng/hello/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:829:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
Failed to restore plugin "cordova-plugin-whitelist" from config.xml. You might need to try adding it again. Error: Error: /Users/richardeng/hello/platforms/android/gradlew: Command failed with exit code 1
だからそれは、Macで何です?
ライセンス契約書に同意した上で、SDKを直接更新してみましたか? –
@モリソンチャン - はい、しました。 –