1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | huangyaodeMacBook-Pro:myApp huangyao$ sudo ionic cordova platform add android Password: > cordova platform add android --save Using cordova-fetch for cordova-android@7.0.0 Adding android project... Creating Cordova project for the Android platform: Path: platforms /android Package: io.ionic.starter Name: myApp Activity: MainActivity Android target: android-26 Subproject Path: CordovaLib Subproject Path: app Android project created with cordova-android@7.0.0 Android Studio project detected Android Studio project detected Installing "cordova-plugin-camera" for android Plugin dependency "cordova-plugin-compat@1.2.0" already fetched, using that version. Installing "cordova-plugin-compat" for android Plugin doesn 't support this project' s cordova-android version. cordova-android: 7.0.0, failed version requirement: <6.3.0 Skipping 'cordova-plugin-compat' for android Subproject Path: CordovaLib Subproject Path: app Installing "cordova-plugin-compat" for android Plugin doesn 't support this project' s cordova-android version. cordova-android: 7.0.0, failed version requirement: <6.3.0 Skipping 'cordova-plugin-compat' for android Installing "cordova-plugin-device" for android Installing "cordova-plugin-file" for android Plugin dependency "cordova-plugin-compat@1.2.0" already fetched, using that version. Installing "cordova-plugin-compat" for android Plugin doesn 't support this project' s cordova-android version. cordova-android: 7.0.0, failed version requirement: <6.3.0 Skipping 'cordova-plugin-compat' for android The Android Persistent storage location now defaults to "Internal" . Please check this plugin's README to see if your application needs any changes in its config.xml. If this is a new application no changes are required. If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add: "<preference name=" AndroidPersistentFileLocation " value=" Compatibility " />" to config.xml in order for the application to find previously stored files. Installing "cordova-plugin-file-transfer" for android Plugin dependency "cordova-plugin-file@4.3.3" already fetched, using that version. Dependent plugin "cordova-plugin-file" already installed on android. Installing "cordova-plugin-filepath" for android Subproject Path: CordovaLib Subproject Path: app Installing "cordova-plugin-ionic-keyboard" for android Installing "cordova-plugin-ionic-webview" for android Installing "cordova-plugin-splashscreen" for android Installing "cordova-plugin-whitelist" for android This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in . --save flag or autosave detected Saving android@~7.0.0 into config.xml file ... |
环境参数如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | cli packages: ( /usr/local/lib/node_modules ) @ionic /cli-utils : 1.19.1 ionic (Ionic CLI) : 3.19.1 global packages: cordova (Cordova CLI) : 8.0.0 local packages: @ionic /app-scripts : 3.1.8 Cordova Platforms : android 7.0.0 Ionic Framework : ionic-angular 3.9.2 System: Node : v8.9.3 npm : 5.5.1 OS : macOS High Sierra Xcode : Xcode 9.2 Build version 9C40b Environment Variables: ANDROID_HOME : not set Misc: backend : pro |