ionicのAndroid実機デバッグでエラーが発生しております。どなたか助けていただきたいです。
公式サイトのチュートリアルにしたがいionic、cordovaをインストールし、ブラウザで動作確認まで問題無く進みました。
https://ionicframework.com/docs//intro/installation/
しかし、実機デバッグしてみようとすると以下のエラーが発生しました。
コマンド
ionic run android
エラー
Error: /home/<ユーザ名>/work/cutePuppyPics/platforms/android/gradlew: Command failed with exit code 1 Error output: 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 25]. 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.
Android SDK Toolsはバージョン24.0.1を使用しております。(最新バージョンではディレクトリ構成が変更されており、別のエラーが発生したためです。参考:https://teratail.com/questions/68549)
以下のサイトにしたがいlicenses/を作成してみましたがうまくいきませんでした。
http://stackoverflow.com/questions/40392345/ionic-build-error-you-have-not-accepted-the-license-agreements-of-the-followin
エラー文ではAndroid SDK Platform 25という箇所がありますが、これはionicでandroidプラットフォームを追加した時に25環境で動作するプラットフォームだったということでしょうか。少なくともPCのSDKは24.0.1なので25が出てくる理由がわかりません。
ionic、cordovaともに初心者のため、よくわかっておらず対処方法に苦慮しております。
ご助言いただければ幸いです。
その他環境は以下の通りです。
ionic info Your system information: Cordova CLI: 6.5.0 Ionic CLI Version: 2.2.2 Ionic App Lib Version: 2.2.1 ios-deploy version: Not installed ios-sim version: Not installed OS: Linux 4.10 Node Version: v7.7.4 Xcode version: Not installed
npm -v 4.5.0
cat /etc/fedora-release Fedora release 25 (Twenty Five)
Android端末のバージョン:5.1
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/04/22 02:09