1

apkファイルを作成しようとしています。 私はアンドロイドスタジオにsdkがインストールされ、jdkを持っています。 しかし、私は私のイオンフォルダにアンドロイドパッケージを追加しようとします。私は、このエラーに修正方法 "cordova-plugin-console 'のインストールに失敗しました:エラー"

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 comp 
lete the installation of the missing components using the Android Studio SDK Man 
ager. 
Alternatively, to learn how to transfer the license agreements from one workstat 
ion 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: 44.28 secs 

Failed to install 'cordova-plugin-console':Error: cmd: Command failed with exit 
code 1 
    at ChildProcess.whenDone (C:\ionic\lcalc\platforms\android\cordova\node_modu 
les\cordova-common\src\superspawn.js:169:23) 
    at emitTwo (events.js:106:13) 
    at ChildProcess.emit (events.js:191:7) 
    at maybeClose (internal/child_process.js:877:16) 
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 
Error: cmd: Command failed with exit code 1 

ヘルプ:(

+0

エラーが示すように、まずライセンスを受け入れる必要があります。私はその問題について具体的な助けをすることをお勧めします。 –

答えて

0

を取得し、あなたのSDKのプラットフォーム24をインストールしてください。

または

プラグインを削除してください。

cordova plugin rm cordova-plugin-console 
1

CLIを印刷しますビルドに失敗した正確な理由。

A problem occurred configuring root project 'android'. 
> You have not accepted the license agreements of the following SDK components: 
[Android SDK Platform 24]. 

だからあなたのSDKマネージャ(あなたが管理者でない場合は、管理者として開く必要がある場合があります)

が必要なSDKのバージョンをインストールして開きます。添付の画像を見てくださいenter image description here

0

私は同じ問題がありました。 android studioを更新して解決しました。

  1. [ファイル]> [設定](Macの場合は[Androidスタジオ]> [設定])をクリックして[環境設定]ウィンドウを開きます。
  2. 左側のパネルで、外観&動作>システム設定>更新をクリックします。
  3. [更新を自動的に確認する]チェックボックスがオンになっていることを確認し、ドロップダウンリストから[安定したチャンネル]を選択します。
  4. 「適用」または「OK」をクリックします。

これは本当に簡単な方法です。

とにかくあなたは(管理者priviledge付き)、コマンドラインからわずかSDKマネージャを更新することができます。

cd path/to/your/android-sdk/tools/bin/ 
./sdkmanager.bat --update 

すべてだと、あなたはこのヘルプを願っています!

関連する問題