WordPress LMS for Web and mobile Forums [DEPRECATED] Ionic App Support ionic cordova platform add android errors

ionic cordova platform add android errors

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #42074

    xiaoyao
    Participant
    > ionic integrations enable cordova [INFO] Downloading integration cordova [INFO] Copying integrations files to project CREATE resources CREATE resources/splash.png CREATE resources/ios CREATE resources/ios/splash CREATE resources/ios/splash/Default~iphone.png CREATE resources/ios/splash/[email protected]~universal~anyany.png CREATE resources/ios/splash/[email protected]~iphone.png CREATE resources/ios/splash/Default-Portrait~ipad.png CREATE resources/ios/splash/[email protected]~ipadpro.png CREATE resources/ios/splash/[email protected]~ipad.png CREATE resources/ios/splash/Default-Landscape~ipad.png CREATE resources/ios/splash/[email protected]~ipadpro.png CREATE resources/ios/splash/[email protected]~ipad.png CREATE resources/ios/splash/Default-Landscape-736h.png CREATE resources/ios/splash/Default-Landscape-2436h.png CREATE resources/ios/splash/Default-736h.png CREATE resources/ios/splash/Default-667h.png CREATE resources/ios/splash/[email protected]~iphone.png CREATE resources/ios/splash/Default-2436h.png CREATE resources/ios/icon CREATE resources/ios/icon/[email protected] CREATE resources/ios/icon/icon.png CREATE resources/ios/icon/[email protected] CREATE resources/ios/icon/[email protected] CREATE resources/ios/icon/icon-small.png CREATE resources/ios/icon/[email protected] CREATE resources/ios/icon/[email protected] CREATE resources/ios/icon/[email protected] CREATE resources/ios/icon/[email protected] CREATE resources/ios/icon/icon-76.png CREATE resources/ios/icon/[email protected] CREATE resources/ios/icon/icon-72.png CREATE resources/ios/icon/[email protected] CREATE resources/ios/icon/[email protected] CREATE resources/ios/icon/icon-60.png CREATE resources/ios/icon/[email protected] CREATE resources/ios/icon/icon-50.png CREATE resources/ios/icon/[email protected] CREATE resources/ios/icon/[email protected] CREATE resources/ios/icon/[email protected] CREATE resources/ios/icon/icon-40.png CREATE resources/ios/icon/[email protected] CREATE resources/ios/icon/[email protected] CREATE resources/ios/icon/icon-29.png CREATE resources/ios/icon/[email protected] CREATE resources/ios/icon/[email protected] CREATE resources/ios/icon/[email protected] CREATE resources/ios/icon/[email protected] CREATE resources/ios/icon/icon-20.png CREATE resources/ios/icon/icon-1024.png CREATE resources/icon.png CREATE resources/android CREATE resources/android/xml CREATE resources/android/xml/network_security_config.xml CREATE resources/android/splash CREATE resources/android/splash/drawable-port-xxxhdpi-screen.png CREATE resources/android/splash/drawable-port-xxhdpi-screen.png CREATE resources/android/splash/drawable-port-xhdpi-screen.png CREATE resources/android/splash/drawable-port-mdpi-screen.png CREATE resources/android/splash/drawable-port-ldpi-screen.png CREATE resources/android/splash/drawable-port-hdpi-screen.png CREATE resources/android/splash/drawable-land-xxxhdpi-screen.png CREATE resources/android/splash/drawable-land-xxhdpi-screen.png CREATE resources/android/splash/drawable-land-xhdpi-screen.png CREATE resources/android/splash/drawable-land-mdpi-screen.png CREATE resources/android/splash/drawable-land-ldpi-screen.png CREATE resources/android/splash/drawable-land-hdpi-screen.png CREATE resources/android/icon CREATE resources/android/icon/drawable-xxxhdpi-icon.png CREATE resources/android/icon/drawable-xxhdpi-icon.png CREATE resources/android/icon/drawable-xhdpi-icon.png CREATE resources/android/icon/drawable-mdpi-icon.png CREATE resources/android/icon/drawable-ldpi-icon.png CREATE resources/android/icon/drawable-hdpi-icon.png CREATE resources/README.md CREATE config.xml [OK] Integration cordova added! > cordova platform add android Using cordova-fetch for [email protected]^8.1.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-28 Subproject Path: CordovaLib Subproject Path: app Android project created with [email protected] Discovered saved plugin "cordova-plugin-camera". Adding it to the project Installing "cordova-plugin-camera" for android Installing "cordova-plugin-compat" for android Plugin doesn't support this project's cordova-android version. cordova-android: 8.1.0, failed version requirement: <6.3.0 Skipping 'cordova-plugin-compat' for android Subproject Path: CordovaLib Subproject Path: app Adding cordova-plugin-camera to package.json Discovered saved plugin "cordova-plugin-inappbrowser". Adding it to the project Installing "cordova-plugin-inappbrowser" for android Adding cordova-plugin-inappbrowser to package.json Discovered saved plugin "cordova-plugin-console". Adding it to the project Installing "cordova-plugin-console" for android Adding cordova-plugin-console to package.json Discovered saved plugin "cordova-plugin-device". Adding it to the project Installing "cordova-plugin-device" for android Adding cordova-plugin-device to package.json Discovered saved plugin "cordova-plugin-file". Adding it to the project Installing "cordova-plugin-file" for android Plugin dependency "[email protected]" already fetched, using that version. Installing "cordova-plugin-compat" for android Plugin doesn't support this project's cordova-android version. cordova-android: 8.1.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. Adding cordova-plugin-file to package.json Discovered saved plugin "cordova-plugin-file-transfer". Adding it to the project Installing "cordova-plugin-file-transfer" for android Failed to install 'cordova-plugin-file-transfer': CordovaError: Version of installed plugin: "[email protected]" does not satisfy dependency plugin requirement "[email protected]>=5.0.0". Try --force to use installed plugin as dependency. at /Users/dev_taolee/.nvm/versions/node/v10.15.0/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:544:43 at process._tickCallback (internal/process/next_tick.js:68:7) Failed to restore plugin "cordova-plugin-file-transfer" from config.xml. You might need to try adding it again. Error: Version of installed plugin: "[email protected]" does not satisfy dependency plugin requirement "[email protected]>=5.0.0". Try --force to use installed plugin as dependency. Discovered saved plugin "cordova-plugin-inapppurchase". Adding it to the project Installing "cordova-plugin-inapppurchase" for android Adding cordova-plugin-inapppurchase to package.json Discovered saved plugin "cordova-plugin-splashscreen". Adding it to the project Installing "cordova-plugin-splashscreen" for android Adding cordova-plugin-splashscreen to package.json Discovered saved plugin "cordova-plugin-statusbar". Adding it to the project Installing "cordova-plugin-statusbar" for android Adding cordova-plugin-statusbar to package.json Discovered saved plugin "cordova-plugin-whitelist". Adding it to the project Installing "cordova-plugin-whitelist" for android Adding cordova-plugin-whitelist to package.json Discovered saved plugin "cordova-sqlite-storage". Adding it to the project Installing "cordova-sqlite-storage" for android Failed to install 'cordova-sqlite-storage': CordovaError: Using "requireCordovaModule" to load non-cordova module "q" is not supported. Instead, add this module to your dependencies and use regular "require" to load it. at Context.requireCordovaModule (/Users/dev_taolee/.nvm/versions/node/v10.15.0/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/Context.js:57:15) at module.exports (/Users/dev_taolee/works/APP/test/qshikong2/plugins/cordova-sqlite-storage/scripts/beforePluginInstall.js:13:21) at runScriptViaModuleLoader (/Users/dev_taolee/.nvm/versions/node/v10.15.0/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:181:32) at runScript (/Users/dev_taolee/.nvm/versions/node/v10.15.0/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:157:16) at /Users/dev_taolee/.nvm/versions/node/v10.15.0/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:125:20 at process._tickCallback (internal/process/next_tick.js:68:7) Failed to restore plugin "cordova-sqlite-storage" from config.xml. You might need to try adding it again. Error: Using "requireCordovaModule" to load non-cordova module "q" is not supported. Instead, add this module to your dependencies and use regular "require" to load it. Discovered saved plugin "ionic-plugin-keyboard". Adding it to the project Installing "ionic-plugin-keyboard" for android Adding ionic-plugin-keyboard to package.json Discovered saved plugin "phonegap-plugin-barcodescanner". Adding it to the project Installing "phonegap-plugin-barcodescanner" for android Subproject Path: CordovaLib Subproject Path: app Adding phonegap-plugin-barcodescanner to package.json Discovered saved plugin "cordova-plugin-ionic-webview". Adding it to the project Installing "cordova-plugin-ionic-webview" for android Subproject Path: CordovaLib Subproject Path: app Adding cordova-plugin-ionic-webview to package.json Discovered saved plugin "cordova-plugin-ionic-keyboard". Adding it to the project Installing "cordova-plugin-ionic-keyboard" for android Adding cordova-plugin-ionic-keyboard to package.json Discovered saved plugin "phonegap-plugin-push". Adding it to the project Installing "phonegap-plugin-push" for android Installing "cordova-support-google-services" for android Subproject Path: CordovaLib Subproject Path: app Installing "phonegap-plugin-multidex" for android Subproject Path: CordovaLib Subproject Path: app Subproject Path: CordovaLib Subproject Path: app Adding phonegap-plugin-push to package.json Discovered saved plugin "cordova-plugin-facebook4". Adding it to the project Installing "cordova-plugin-facebook4" for android Subproject Path: CordovaLib Subproject Path: app Adding cordova-plugin-facebook4 to package.json Discovered saved plugin "cordova-plugin-googleplus". Adding it to the project Installing "cordova-plugin-googleplus" for android Subproject Path: CordovaLib Subproject Path: app Adding cordova-plugin-googleplus to package.json [ERROR] An error occurred while running subprocess cordova. cordova platform add android exited with exit code 1. Re-running this command with the --verbose flag may provide more information.
    #42081

    Tantan
    Participant
    i have same issue here..
    #42086

    Harry
    Spectator
    Hello Rename the existing node module folder and replace the package.json file with this http://bit.ly/2FtU2m1  after this just run this command: npm install    If this will be done then build the debug app with this command: ionic Cordova build android
    #42102

    xiaoyao
    Participant
    This reply has been marked as private.
    #42181

    Scott Lang
    Keymaster
    Hi, You need to add android platform first: ionic cordova platform add android Check platform added: ionic cordova platform Then build: ionic cordova build android  
    #42187

    xiaoyao
    Participant
    Hi, I found it may cordova's verison caused the problem. Which is version of your cordova? Mine is 9.0.0.
    #42262

    Scott Lang
    Keymaster
    We are using 9.0.0 too.
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘[DEPRECATED] Ionic App Support’ is closed to new topics and replies.
Copyright VibeThemes.