phonegap-plugins - 哦,天哪。您的构建失败。点击上方的“Log”按钮查看编译日志……”
问题描述
Phonegapp Show 错误是:“Oh geez. Your build failed. 点击上面的“Log”按钮查看编译日志。如果您需要帮助诊断问题,您可以使用您的 App ID 发布到支持论坛(请执行先搜索)。”
在此处登录:https ://www.ujairo.com/log.txt
任何人帮助我
这是我的 XML 文件:
<?xml version="1.0" encoding="utf-8" ?>
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
xmlns:android = "http://schemas.android.com/apk/res/android"
id = "com.ujairo.driver"
versionCode = "1"
version = "1.0">
<name>Ujairo Driver App</name>
<description>
Ujairo Driver App
</description>
<author email="theujairo@gmail.com" href="http://ujairo.com">
ujairo.com
</author>
<icon src="icon.png" />
<content src="index.html" />
<preference name="orientation" value="portrait" />
<preference name="android-build-tool" value="gradle" />
<preference name="permissions" value="none"/>
<gap:plugin name="cordova-plugin-whitelist" source="npm" />
<gap:plugin name="phonegap-plugin-push" source="npm" spec="1.11.1" >
<param name="SENDER_ID" value="" />
</gap:plugin>
<gap:plugin name="cordova-plugin-device" source="npm" />
<gap:plugin name="cordova-plugin-inappbrowser" source="npm" />
<gap:plugin name="cordova-plugin-splashscreen" source="npm" />
<gap:plugin name="cordova-plugin-geolocation" source="npm" />
<gap:plugin name="cordova-plugin-network-information" source="npm" />
<gap:plugin name="cordova-plugin-request-location-accuracy" source="npm" spec="2.2.0" />
<gap:plugin name="cordova-plugin-x-toast" source="npm" spec="2.6.0" />
<gap:plugin name="cordova-plugin-media" source="npm" spec="3.0.0" />
<gap:plugin name="cordova-plugin-googlemaps" source="npm" spec="1.3.9" >
<param name="API_KEY_FOR_ANDROID" value="AIzaSyCO7w7C4Q788zHcppcxQ-RCEVAnmk5BUOs" />
<param name="API_KEY_FOR_IOS" value="" />
</gap:plugin>
<plugin name="cordova-plugin-insomnia" version="4.1.0" source="npm" />
<gap:plugin name="cordova-plugin-buildinfo" source="npm" spec="1.1.0" />
<gap:plugin name="cordova-plugin-vibration" source="npm" spec="2.1.4" />
<gap:plugin name="cordova-plugin-camera" source="npm" spec="2.4.0" />
<gap:plugin name="cordova-plugin-file-transfer" source="npm" spec="1.6.2" />
<plugin name="cordova-plugin-mauron85-background-geolocation" source="npm" spec="2.2.5" >
<variable name="ALWAYS_USAGE_DESCRIPTION" value="This app requires background tracking enabled" />
</plugin>
<gap:splash src="splash.png" />
<preference name="AutoHideSplashScreen" value="false" />
<preference name="SplashScreenDelay" value="5000" />
<access origin="*" />
<access origin="tel:*" launch-external="yes" />
<gap:config-file platform="android" parent="/manifest">
<supports-screens android:xlargeScreens="true" android:largeScreens="true" android:smallScreens="true" />
<application android:theme="@android:style/Theme.NoTitleBar" >
</application>
</gap:config-file>
<gap:config-file platform="ios" parent="NSPhotoLibraryUsageDescription" overwrite="true">
<string>Ujairo would like to access your photo</string>
</gap:config-file>
<icon src="icon.png" />
<icon gap:platform="ios" height="60" width="60" src="res/icons/ios/icon-60.png" />
<icon gap:platform="ios" height="120" width="120" src="res/icons/ios/icon-60-2x.png" />
<icon gap:platform="ios" height="180" width="180" src="res/icons/ios/icon-60-3x.png" />
<icon gap:platform="ios" height="76" width="76" src="res/icons/ios/icon-76.png" />
<icon gap:platform="ios" height="152" width="152" src="res/icons/ios/icon-76-2x.png" />
<icon gap:platform="ios" height="40" width="40" src="res/icons/ios/icon-40.png" />
<icon gap:platform="ios" height="80" width="80" src="res/icons/ios/icon-40-2x.png" />
<icon gap:platform="ios" height="57" width="57" src="res/icons/ios/icon-57.png" />
<icon gap:platform="ios" height="114" width="114" src="res/icons/ios/icon-57-2x.png" />
<icon gap:platform="ios" height="72" width="72" src="res/icons/ios/icon-72.png" />
<icon gap:platform="ios" height="144" width="144" src="res/icons/ios/icon-72-2x.png" />
<icon gap:platform="ios" height="29" width="29" src="res/icons/ios/icon-small.png" />
<icon gap:platform="ios" height="58" width="58" src="res/icons/ios/icon-small-2x.png" />
<icon gap:platform="ios" height="50" width="50" src="res/icons/ios/icon-50.png" />
<icon gap:platform="ios" height="100" width="100" src="res/icons/ios/icon-50-2x.png" />
<icon gap:platform="android" gap:qualifier="ldpi" src="res/icons/android/icon-36-ldpi.png" />
<icon gap:platform="android" gap:qualifier="mdpi" src="res/icons/android/icon-48-mdpi.png" />
<icon gap:platform="android" gap:qualifier="hdpi" src="res/icons/android/icon-72-hdpi.png" />
<icon gap:platform="android" gap:qualifier="xhdpi" src="res/icons/android/icon-96-xhdpi.png" />
<icon gap:platform="android" gap:qualifier="xxhdpi" src="res/icons/android/icon-144-xxhdpi.png" />
<icon gap:platform="android" gap:qualifier="xxxhdpi" src="res/icons/android/icon-192-xxxhdpi.png" />
<splash src="splash.png" />
<splash gap:platform="ios" height="480" width="320" src="res/screens/ios/screen-iphone-portrait.png" />
<splash gap:platform="ios" height="960" width="640" src="res/screens/ios/screen-iphone-portrait-2x.png" />
<splash gap:platform="ios" height="1024" width="768" src="res/screens/ios/screen-ipad-portrait.png" />
<splash gap:platform="ios" height="2048" width="1536" src="res/screens/ios/screen-ipad-portrait-2x.png" />
<splash gap:platform="ios" height="768" width="1024" src="res/screens/ios/screen-ipad-landscape.png" />
<splash gap:platform="ios" height="1536" width="2048" src="res/screens/ios/screen-ipad-landscape-2x.png" />
<splash gap:platform="ios" height="1136" width="640" src="res/screens/ios/screen-iphone-568h-2x.png" />
<splash gap:platform="ios" height="1334" width="750" src="res/screens/ios/screen-iphone-portrait-667h.png" />
<splash gap:platform="ios" height="2208" width="1242" src="res/screens/ios/screen-iphone-portrait-736h.png" />
<splash gap:platform="ios" height="1242" width="2208" src="res/screens/ios/screen-iphone-landscape-736h.png" />
<splash gap:platform="android" gap:qualifier="land-hdpi" src="res/screens/android/screen-hdpi-landscape.png" />
<splash gap:platform="android" gap:qualifier="land-ldpi" src="res/screens/android/screen-ldpi-landscape.png" />
<splash gap:platform="android" gap:qualifier="land-mdpi" src="res/screens/android/screen-mdpi-landscape.png" />
<splash gap:platform="android" gap:qualifier="land-xhdpi" src="res/screens/android/screen-xhdpi-landscape.png" />
<splash gap:platform="android" gap:qualifier="port-hdpi" src="res/screens/android/screen-hdpi-portrait.png" />
<splash gap:platform="android" gap:qualifier="port-ldpi" src="res/screens/android/screen-ldpi-portrait.png" />
<splash gap:platform="android" gap:qualifier="port-mdpi" src="res/screens/android/screen-mdpi-portrait.png" />
<splash gap:platform="android" gap:qualifier="port-xhdpi" src="res/screens/android/screen-xhdpi-portrait.png" />
</widget>
解决方案
请参考下面的config.xml
确保所有图标和 Flash 屏幕都应保持在同一路径上,否则会出现错误。如果您没有提到大小的图像,则将其从配置文件中删除
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.ionic.starter" version="0.0.1"
xmlns="http://www.w3.org/ns/widgets"
xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>myApp</name>
<description>An awesome Ionic/Cordova app.</description>
<author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author>
<content src="index.html" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<preference name="ScrollEnabled" value="false" />
<preference name="android-minSdkVersion" value="19" />
<preference name="BackupWebStorage" value="none" />
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="FadeSplashScreenDuration" value="300" />
<preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="3000" />
<platform name="android">
<allow-intent href="market:*" />
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
<icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
<icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
<icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
<splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
<splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
<splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
<splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
<splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
<splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
<splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
<splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
<splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
<splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
<splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
<splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<icon height="57" src="resources/ios/icon/icon.png" width="57" />
<icon height="114" src="resources/ios/icon/icon@2x.png" width="114" />
<icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
<icon height="80" src="resources/ios/icon/icon-40@2x.png" width="80" />
<icon height="120" src="resources/ios/icon/icon-40@3x.png" width="120" />
<icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
<icon height="100" src="resources/ios/icon/icon-50@2x.png" width="100" />
<icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
<icon height="120" src="resources/ios/icon/icon-60@2x.png" width="120" />
<icon height="180" src="resources/ios/icon/icon-60@3x.png" width="180" />
<icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
<icon height="144" src="resources/ios/icon/icon-72@2x.png" width="144" />
<icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
<icon height="152" src="resources/ios/icon/icon-76@2x.png" width="152" />
<icon height="167" src="resources/ios/icon/icon-83.5@2x.png" width="167" />
<icon height="29" src="resources/ios/icon/icon-small.png" width="29" />
<icon height="58" src="resources/ios/icon/icon-small@2x.png" width="58" />
<icon height="87" src="resources/ios/icon/icon-small@3x.png" width="87" />
<icon height="1024" src="resources/ios/icon/icon-1024.png" width="1024" />
<splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" />
<splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" />
<splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" />
<splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" />
<splash height="1536" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" />
<splash height="2048" src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" />
<splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" />
<splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" />
<splash height="2732" src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" />
<splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" />
<splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" />
<splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
<splash height="2732" src="resources/ios/splash/Default@2x~universal~anyany.png" width="2732" />
</platform>
<plugin name="cordova-plugin-whitelist" spec="1.3.3" />
<plugin name="cordova-plugin-statusbar" spec="2.4.2" />
<plugin name="cordova-plugin-device" spec="2.0.2" />
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
<plugin name="cordova-plugin-ionic-webview" spec="^2.0.0" />
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
</widget>
推荐阅读
- agda - 什么是阳性检查?
- sparql - 是否可以将运算符添加到曼彻斯特语法中?
- php - Symfony 4.0 - 达到“512”的最大函数嵌套级别,中止
- xml - 在 bash 脚本中不使用 php 解析 cURL 响应
- typescript - 如何在 Konva 舞台上设置 CSS 属性?
- android - Android studio admob 奖励视频无法加载广告:3
- c# - 如何通过 VSTS 部署流分析作业?
- guzzle - 未定义的偏移量:0 与 LARAVEL 5.6 和 GuzzleHttp POST 请求
- python-3.x - 如何使用 Nuitka 编译具有请求模块的 .py 脚本?
- regex - Powershell重命名文件不起作用 - 没有错误