Phonegapp Ошибка "О, черт. Ваша сборка не удалась. Нажмите кнопку" Журнал "выше, чтобы просмотреть журнал компиляции ........" - PullRequest
0 голосов
/ 02 сентября 2018

Возникла ошибка при компиляции приложения PhoneGapp для Android.
Может кто-нибудь мне помочь?

Мой Журнал следующий:

Build Date: 2018-09-02 18:51:49 +0000
--------------------------------------------------------------------------------
PLUGIN OUTPUT
--------------------------------------------------------------------------------
Fetching plugin "cordova-plugin-whitelist" via npm
Installing "cordova-plugin-whitelist" at "1.3.3" 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.
Fetching plugin "phonegap-plugin-push@1.11.1" via npm
Installing "phonegap-plugin-push" at "1.11.1" for android
Subproject Path: CordovaLib
Fetching plugin "cordova-plugin-device" via npm
Installing "cordova-plugin-device" at "2.0.2" for android
Fetching plugin "cordova-plugin-inappbrowser" via npm
Installing "cordova-plugin-inappbrowser" at "3.0.0" for android
Fetching plugin "cordova-plugin-splashscreen" via npm
Installing "cordova-plugin-splashscreen" at "5.0.2" for android
Fetching plugin "cordova-plugin-geolocation" via npm
Installing "cordova-plugin-geolocation" at "4.0.1" for android
Plugin doesn't support this project's cordova-android version. cordova-android: 6.1.2, failed version requirement: >=6.3.0
Skipping 'cordova-plugin-geolocation' for android
Fetching plugin "cordova-plugin-network-information" via npm
Installing "cordova-plugin-network-information" at "2.0.1" for android
Fetching plugin "cordova-plugin-request-location-accuracy@2.2.0" via npm
Installing "cordova-plugin-request-location-accuracy" at "2.2.0" for android
Subproject Path: CordovaLib
Fetching plugin "cordova-plugin-x-toast@2.6.0" via npm
Installing "cordova-plugin-x-toast" at "2.6.0" for android
Fetching plugin "cordova-plugin-media@3.0.0" via npm
Installing "cordova-plugin-media" at "3.0.0" for android
Fetching plugin "cordova-plugin-file@^4.0.0" via npm
Installing "cordova-plugin-file" at "4.3.3" for android
Fetching plugin "cordova-plugin-compat@^1.0.0" via npm
Installing "cordova-plugin-compat" at "1.2.0" 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.

Plugin dependency "cordova-plugin-compat@1.2.0" already fetched, using that version.
Dependent plugin "cordova-plugin-compat" already installed on android.
Fetching plugin "cordova-plugin-googlemaps@1.3.9" via npm
Installing "plugin.google.maps" at "1.3.9" for android
Subproject Path: CordovaLib

             In order to run this plugin, you need to obtain Google Maps API key for Android.
             Visit https://github.com/mapsplugin/cordova-plugin-googlemaps/wiki/Installation

             Check our release notes.
             https://github.com/wf9a5m75/phonegap-googlemaps-plugin/wiki/Release-Notes
Fetching plugin "cordova-plugin-buildinfo@1.1.0" via npm
Installing "cordova-plugin-buildinfo" at "1.1.0" for android
Fetching plugin "cordova-plugin-vibration@2.1.4" via npm
Installing "cordova-plugin-vibration" at "2.1.4" for android
Fetching plugin "cordova-plugin-camera@2.4.0" via npm
Installing "cordova-plugin-camera" at "2.4.0" for android
Plugin dependency "cordova-plugin-compat@1.2.0" already fetched, using that version.
Dependent plugin "cordova-plugin-compat" already installed on android.
Subproject Path: CordovaLib
Fetching plugin "cordova-plugin-file-transfer@1.6.2" via npm
Installing "cordova-plugin-file-transfer" at "1.6.2" for android
Plugin dependency "cordova-plugin-file@4.3.3" already fetched, using that version.
Dependent plugin "cordova-plugin-file" already installed on android.
Fetching plugin "cordova-plugin-insomnia@4.1.0" via npm
Installing "nl.x-services.plugins.insomnia" at "4.1.0" for android
Fetching plugin "cordova-plugin-mauron85-background-geolocation@2.2.5" via npm
Installing "cordova-plugin-mauron85-background-geolocation" at "2.2.5" for android
Subproject Path: CordovaLib
--------------------------------------------------------------------------------
PROJECT PROPERTIES
--------------------------------------------------------------------------------
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
target=android-25
android.library.reference.1=CordovaLib
cordova.gradle.include.1=phonegap-plugin-push/driver-push.gradle
cordova.system.library.1=com.android.support:support-v13:24+
cordova.system.library.2=com.google.android.gms:play-services-gcm:15+
cordova.system.library.3=me.leolin:ShortcutBadger:1.1.14@aar
cordova.system.library.4=com.google.android.gms:play-services-location:+
cordova.system.library.5=com.google.android.gms:play-services-maps:+
cordova.system.library.6=com.google.android.gms:play-services-location:+
cordova.system.library.7=com.android.support:support-v4:24.1.1+
cordova.gradle.include.2=cordova-plugin-mauron85-background-geolocation/driver-logtofile.gradle
cordova.system.library.8=com.google.android.gms:play-services-location:+
cordova.system.library.9=com.android.support:support-v4:+
--------------------------------------------------------------------------------
COMPILE OUTPUT
--------------------------------------------------------------------------------
Subproject Path: CordovaLib
Running command: /project/gradlew cdvBuildDebug -b /project/build.gradle -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m -Pandroid.useDeprecatedNdk=true
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
    at build_cpkdcvfflke3bd11p2l3j5hkw.run(/project/build.gradle:139)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
The ProjectDependency.getProjectConfiguration() method has been deprecated and is scheduled to be removed in Gradle 4.0.
ModuleDependency.getConfiguration() has been deprecated and is scheduled to be removed in Gradle 4.0. Use ModuleDependency.getTargetConfiguration() instead.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'project'.
> Could not resolve all dependencies for configuration ':_debugApkCopy'.
   > Could not find any version that matches com.google.android.gms:play-services-gcm:15+.
     Versions that do not match:
         11.0.4
         11.0.2
         11.0.1
         11.0.0
         10.2.6
         + 18 more
     Required by:
         project :

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.384 secs
Command finished with error code 1: /project/gradlew cdvBuildDebug,-b,/project/build.gradle,-Dorg.gradle.daemon=true,-Dorg.gradle.jvmargs=-Xmx2048m,-Pandroid.useDeprecatedNdk=true
Error: /project/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'project'.
> Could not resolve all dependencies for configuration ':_debugApkCopy'.
   > Could not find any version that matches com.google.android.gms:play-services-gcm:15+.
     Versions that do not match:
         11.0.4
         11.0.2
         11.0.1
         11.0.0
         10.2.6
         + 18 more
     Required by:
         project :

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    at ChildProcess.whenDone (/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:877:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

Ошибка Phonegapp :

О Боже. Ваша сборка не удалась. Нажмите кнопку «Журнал» выше, чтобы просмотреть журнал компиляции. Если вам нужна помощь в диагностике проблемы, вы можете отправить сообщение на форум поддержки со своим идентификатором приложения (сначала выполните поиск).

Это мой 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>
...