Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/198.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android接受SDK的许可协议[Google Repository,Android Support Repository]_Android_Ionic Framework_Cordova Plugins - Fatal编程技术网

Android接受SDK的许可协议[Google Repository,Android Support Repository]

Android接受SDK的许可协议[Google Repository,Android Support Repository],android,ionic-framework,cordova-plugins,Android,Ionic Framework,Cordova Plugins,当我试图建立这个项目的时候 ionic build android 或者特别添加这个插件 $ ionic plugin add cordova-plugin-screen-orientation ir使用许可证返回此问题 $ ionic plugin add cordova-plugin-screen-orientation WARN: ionic.project has been renamed to ionic.config.json, please rename it. Fetchi

当我试图建立这个项目的时候

 ionic build android
或者特别添加这个插件

$ ionic plugin add cordova-plugin-screen-orientation
ir使用许可证返回此问题

$ ionic plugin add cordova-plugin-screen-orientation
WARN: ionic.project has been renamed to ionic.config.json, please rename it.
Fetching plugin "cordova-plugin-screen-orientation" via npm


Installing "cordova-plugin-screen-orientation" for android


ANDROID_HOME=/xxx/Android SDK/adt-bundle-mac-x86_64-20140702/sdk

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home

Subproject Path: CordovaLib

Incremental java compilation is an incubating feature.



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:
  [Google Repository, Android Support Repository].

  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: 7.315 secs


Failed to install 'cordova-plugin-screen-orientation':Error: /XXX/platforms/android/gradlew: Command failed with exit code 1
    at ChildProcess.whenDone (/XXX/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at emitTwo (events.js:100:13)
    at ChildProcess.emit (events.js:185:7)
    at maybeClose (internal/child_process.js:850:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)


Error: /XXX/platforms/android/gradlew: Command fail

请提供帮助

找到解决方案,我正在寻找的许可证是

[谷歌存储库,Android支持存储库]

要安装这些,我需要它来做

$ android update sdk --no-ui --filter extra-android-m2repository,extra-google-m2repository

这对我来说很有用。谢谢,那篇帖子帮我找到了我想要的答案。。。