ionic cordova build android
cordova platform add android --save
Using cordova-fetch for cordova-android@~6.3.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
Android project created with cordova-android@6.3.0
Installing “cordova-plugin-advanced-http” for android
Plugin dependency “cordova-plugin-file@4.3.3” already fetched, using that version.
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: 6.3.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-appminimize” for android
Installing “cordova-plugin-compat” for android
Plugin doesn’t support this project’s cordova-android version. cordova-android: 6.3.0, failed version requirement:
<6.3.0
Skipping ‘cordova-plugin-compat’ for android
Installing “cordova-plugin-device” for android
Dependent plugin “cordova-plugin-file” already installed on 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.
Installing “ionic-plugin-keyboard” for android
–save flag or autosave detected
Saving android@~6.3.0 into config.xml file …
Running app-scripts build: --platform android --target cordova
[16:49:14] build dev started …
[16:49:15] clean started …
[16:49:15] clean finished in 62 ms
[16:49:15] copy started …
[16:49:15] deeplinks started …
[16:49:15] deeplinks finished in 99 ms
[16:49:15] transpile started …
[16:49:19] transpile finished in 4.22 s
[16:49:19] preprocess started …
[16:49:19] preprocess finished in 1 ms
[16:49:19] webpack started …
[16:49:19] copy finished in 4.56 s
[16:49:30] webpack finished in 10.66 s
[16:49:30] sass started …
[16:49:31] sass finished in 1.09 s
[16:49:31] postprocess started …
[16:49:31] postprocess finished in 15 ms
[16:49:31] lint started …
[16:49:31] build dev finished in 16.38 s
cordova build android
[16:49:36] tslint: E:/net/utsourcePrint/src/providers/data.ts, line: 79
‘body’ is declared but never used.
L78: let options = new RequestOptions({headers: headers, method: 'post',});
L79: let body = {
L80: cmd: 'product/allcategorys',
[16:49:36] lint finished in 5.00 s
ANDROID_HOME=D:\android sdk
JAVA_HOME=D:\Program Files\Java\jdk1.8.0_71
Error: Cannot read property ‘length’ of undefined
[ERROR] An error occurred while running cordova build android (exit code 1).
E:\net\utsourcePrint>ionic cordova requirements
cordova requirements
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: not installed
Please install Android target / API level: “android-26”.
Hint: Open the SDK manager by running: “D:\android sdk\tools\android.bat”
You will require:
- “SDK Platform” for API level android-26
- "Android SDK Platform-tools (latest)
- “Android SDK Build-tools” (latest)
Gradle: not installed
Cannot read property ‘length’ of undefined
Error: Some of requirements check failed
E:\net\utsourcePrint>ionic cordova requirements
cordova requirements
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: not installed
Please install Android target / API level: “android-26”.
Hint: Open the SDK manager by running: “D:\android sdk\tools\android.bat”
You will require:
- “SDK Platform” for API level android-26
- "Android SDK Platform-tools (latest)
- “Android SDK Build-tools” (latest)
Gradle: not installed
Cannot read property ‘length’ of undefined
Error: Some of requirements check failedPreformatted text