Я получаю сообщение об ошибке при использовании cordova-android 7.1.1, который, по-видимому, связан с конкретным плагином, который не обновляется с новым cordova-android.Как ни странно, сборка проекта с помощью cordova build android прекрасно работает для ios build.
Любая помощь будет приветствоваться.
Вывод из code-push release-cordova:
Executing script found in plugin cordova-android-support-gradle-release for hook "before_prepare": plugins/cordova-android-support-gradle-release/scripts/before-prepare.js Checking config.xml and package.json for saved platforms that haven't been added to the project Config.xml and package.json platforms are the same. No pkg.json modification. Package.json and config.xml platforms are different. Updating config.xml with most current list of platforms. PlatformApi successfully found for platform android Android Studio project detected Checking config.xml for saved plugins that haven't been added to the project Checking for any plugins added to the project that have not been installed in android platform No differences found between plugins added to project and installed in android platform. Continuing... Generating platform-specific config.xml from defaults for android at /Users/xxx/Desktop/VMSharedFolder/Projects/xxx/platforms/android/app/src/main/res/xml/config.xml Merging project's config.xml into platform-specific android config.xml Merging and updating files from [www, platforms/android/platform_www] to platforms/android/app/src/main/assets/www copy www/images/homescreen/logo.png platforms/android/app/src/main/assets/www/images/homescreen/logo.png (updated file) copy www/images/homescreen/logo@2x.png platforms/android/app/src/main/assets/www/images/homescreen/logo@2x.png (updated file) copy www/scripts/dpc.all.min.js platforms/android/app/src/main/assets/www/scripts/dpc.all.min.js (updated file) copy www/views/interventions.html platforms/android/app/src/main/assets/www/views/interventions.html (updated file) copy www/views/loggerView.html platforms/android/app/src/main/assets/www/views/loggerView.html (updated file) copy www/views/mapOverview.html platforms/android/app/src/main/assets/www/views/mapOverview.html (updated file) copy www/views/noriaDestinationList.html platforms/android/app/src/main/assets/www/views/noriaDestinationList.html (updated file) copy www/views/noriaVectorSelectionList.html platforms/android/app/src/main/assets/www/views/noriaVectorSelectionList.html (updated file) copy www/views/patientDetail.html platforms/android/app/src/main/assets/www/views/patientDetail.html (updated file) copy www/views/patientEdit.html platforms/android/app/src/main/assets/www/views/patientEdit.html (updated file) copy www/views/patientsList.html platforms/android/app/src/main/assets/www/views/patientsList.html (updated file) copy www/views/support.html platforms/android/app/src/main/assets/www/views/support.html (updated file) copy www/views/traumaList.html platforms/android/app/src/main/assets/www/views/traumaList.html (updated file) copy www/views/userLogin.html platforms/android/app/src/main/assets/www/views/userLogin.html (updated file) Wrote out android application name "xxxx" to /Users/xxx/Desktop/VMSharedFolder/Projects/xxx/platforms/android/app/src/main/res/values/strings.xml Wrote out Android package name "zz.yyy.xxx" to /Users/xxx/Desktop/VMSharedFolder/Projects/xxx/platforms/android/app/src/main/java/zz/yyy/xxx/MainActivity.java This app does not have launcher icons defined This app does not have splash screens defined Updating resource files at platforms/android Prepared android project successfully Executing script found in plugin com.telerik.cordovaPlatformSpecificFiles for hook "after_prepare": plugins/com.telerik.cordovaPlatformSpecificFiles/scripts/after_prepare.js Executing script found in plugin cordova-android-support-gradle-release for hook "after_prepare": plugins/cordova-android-support-gradle-release/scripts/after-prepare.js cordova-android-support-gradle-release ANDROID_SUPPORT_VERSION:
27.0.0 cordova-android-support-gradle-release : WROTE /Users/xxx/Desktop/VMSharedFolder/Projects/xxx/platforms/android/build.gradle
> 27.0.0
Releasing update contents to CodePush:
[Error] ENOENT: no such file or directory, lstat '/Users/xxx/Desktop/VMSharedFolder/Projects/xxx/platforms/android/assets/www'
обратите внимание, что ios code-push работает нормально.
Вот список плагинов, которые я использую:
code-push 2.0.6 "CodePushAcquisition"
com.telerik.cordovaPlatformSpecificFiles 0.1.0 "Cordova Platform Specific Files"
cordova-android-support-gradle-release 1.2.0 "cordova-android-support-gradle-release"
cordova-plugin-camera 2.3.1 "Camera"
cordova-plugin-code-push 1.11.12 "CodePush"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-device-motion 1.2.3 "Device Motion"
cordova-plugin-device-orientation 1.0.5 "Device Orientation"
cordova-plugin-dialogs 1.3.1 "Notification"
cordova-plugin-file 4.3.1 "File"
cordova-plugin-file-transfer 1.6.1 "File Transfer"
cordova-plugin-geolocation 2.4.1 "Geolocation"
cordova-plugin-globalization 1.0.5 "Globalization"
cordova-plugin-insomnia 4.3.0 "Insomnia (prevent screen sleep)"
cordova-plugin-ionic-keyboard 2.1.2 "cordova-plugin-ionic-keyboard"
cordova-plugin-mauron85-background-geolocation 2.3.6 "CDVBackgroundGeolocation"
cordova-plugin-media 2.4.1 "Media"
cordova-plugin-media-capture 1.4.1 "Capture"
cordova-plugin-network-information 1.3.1 "Network Information"
cordova-plugin-splashscreen 4.0.1 "Splashscreen"
cordova-plugin-statusbar 2.2.2-dev "StatusBar"
cordova-plugin-vibration 2.1.3 "Vibration"
cordova-plugin-whitelist 1.3.1 "Whitelist"
cordova-plugin-x-toast 2.6.0 "Toast"
cordova-plugin-zip 3.1.0 "cordova-plugin-zip"
cordova-support-google-services 1.1.0 "cordova-support-google-services"
phonegap-plugin-barcodescanner 8.0.0 "BarcodeScanner"
phonegap-plugin-multidex 1.0.0 "Multidex"
phonegap-plugin-push 2.2.3 "PushPlugin"