Ich habe installiert cordova-plugin-mauron85-Hintergrund-GeolocationCordrova Hintergrund Geolocation phonegap build nicht
Aber die Erstellung fehl auf Android mit dieser Nachricht und ich kann nicht, was falsch herausfinden.
Hier ist die Fehlermeldung aus dem Phonegap Build-Protokoll.
Wo: Build-Datei '/project/build.gradle' line: 253
Was schief gelaufen ist: Ein Problem Stammprojekt 'Projekt' aufgetreten zu bewerten.
kann nicht unbekannte Eigenschaft 'GOOGLE_PLAY_SERVICES_VERSION' get für Objekte vom Typ org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Das ist mein config.xml
<?xml version='1.0' encoding='utf-8'?>
<widget id="no.twn.androidapp" version="1.0.6" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>temp</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="[email protected]" href="http://cordova.io">
Apache Cordova Team
</author>
<content src="index.html" />
<preference name="phonegap-version" value="cli-6.5.0" />
<preference name="DisallowOverscroll" value="true" />
<preference name="android-minSdkVersion" value="15" />
<preference name="android-build-tool" value="gradle" />
<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:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
<engine name="ios" spec="^4.4.0" />
<engine name="android" spec="^6.3.0" />
<plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
<plugin name="cordova-plugin-mauron85-background-geolocation" spec="^2.3.3">
<variable name="GOOGLE_PLAY_SERVICES_VERSION" value="+" />
<variable name="ICON" value="@mipmap/icon" />
<variable name="SMALL_ICON" value="@mipmap/icon" />
<variable name="ACCOUNT_NAME" value="@string/app_name" />
<variable name="ACCOUNT_LABEL" value="@string/app_name" />
<variable name="ACCOUNT_TYPE" value="$PACKAGE_NAME.account" />
<variable name="CONTENT_AUTHORITY" value="$PACKAGE_NAME" />
<variable name="ALWAYS_USAGE_DESCRIPTION" value="This app always requires location tracking" />
</plugin>
</widget>
Ich sehe durch Ihr Bild, dass der Build ich erfolgreich bin, aber es funktioniert, wenn Sie es bauen, obwohl phonegap. Ich habe auch einen erfolgreichen Build auf meiner Maschine, aber nicht, wenn ich es mit Phonegap baue. Übrigens. Es scheint mir, dass phonegap eine niedrigere Version von Android verwendet, als ich 6.1.3 benutze, ich benutze 6.3.0 und ich denke, 6.3.0 wird vom Plugin benötigt. – christian