Closed dagatsoin closed 6 years ago
You have an issue with android app-compat
dependency version. Paste your platforms/android/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=cordova-plugin-meteor-webapp/id2va21f4vsr7vt0pnvn-build-extras.gradle
cordova.system.library.1=com.squareup.okhttp3:okhttp:3.1.2
cordova.gradle.include.2=cordova-background-geolocation-lt/id2va21f4vsr7vt0pnvn-build.gradle
cordova.gradle.include.3=cordova-plugin-crosswalk-webview/id2va21f4vsr7vt0pnvn-xwalk.gradle
This can't be 2.10.1
of the plugin. You should see following entries added by the plugin:
cordova.system.library.1=com.google.android.gms:play-services-location:11.8.0
cordova.system.library.2=com.android.support:appcompat-v7:27.0.0
Indeed it is the the 2.8.5. I think I edited my original post after you answer.
Do you need additional info?
Your version of okhttp3
, presumably place there by Meteor is over a year old:
com.squareup.okhttp3:okhttp:3.1.2
background-geolocation uses okhttp
as well:
compile 'com.squareup.okhttp3:okhttp:3.8.1'
OkHttp3 added breaking changes in 3.5.0.
Meteor is a junkpile. Try manually editing your project.properties
and set the version to 3.8.1
thx, close it for now, I have to wait for Meteor 1.6.2 cause https://github.com/meteor/meteor/blob/release-1.6.2/packages/webapp/package.js#L25
Please Help !!!!!
#
Error: cmd: Command failed with exit code 1 Error output: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. ERROR: In
target=android-26 android.library.reference.1=CordovaLib cordova.gradle.include.1=cordova-plugin-crosswalk-webview/newsbeen-xwalk.gradle cordova.system.library.2=me.leolin:ShortcutBadger:1.1.17@aar cordova.system.library.3=com.google.firebase:firebase-messaging:11.0.1 cordova.system.library.4=com.android.support:support-v4:24.1.1+ cordova.gradle.include.2=phonegap-plugin-push/newsbeen-push.gradle cordova.system.library.5=com.android.support:support-v4:24.1.1+ cordova.system.library.6=com.facebook.android:facebook-android-sdk:4.+
@rafiqvns $ cordova plugins
@christocracy
<preference name="Fullscreen" value="true" />
<preference name="loadUrlTimeoutValue" value="700000" />
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="20000" />
<preference name="AutoHideSplashScreen" value="true" />
<preference name="SplashMaintainAspectRatio" value="false" />
<preference name="ShowSplashScreenSpinner" value="false" />
<preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="KeyboardResize" value="true" />
<preference name="KeyboardResizeMode" value="native" />
<preference name="xwalkCommandLine" value="--ignore-gpu-blacklist" />
<feature name="Geolocation">
param name="android-package" value="org.apache.cordova.GeoBroker" />
</feature>
<preference name="android-minSdkVersion" value="16" />
<engine name="android" spec="^6.3.0" />
<plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
<plugin name="cordova-plugin-camera" spec="^3.0.0" />
<plugin name="cordova-plugin-file-transfer" spec="^1.7.0" />
<plugin name="cordova-plugin-network-information" spec="^1.3.4" />
<plugin name="cordova-plugin-dialogs" spec="^1.3.4" />
<plugin name="cordova-plugin-globalization" spec="^1.0.8" />
<plugin name="cordova-plugin-media-capture" spec="^2.0.0" />
<plugin name="cordova-plugin-media" spec="^4.0.0" />
<plugin name="cordova-plugin-splashscreen" spec="^4.1.0" />
<plugin name="cordova-plugin-keyboard" spec="^1.2.0" />
<plugin name="cordova-plugin-geolocation" spec="^3.0.0" />
<plugin name="cordova-plugin-background-mode" spec="^0.7.2" />
<plugin name="cordova-plugin-webrtc" spec="^0.1.1" />
<plugin name="cordova-plugin-crosswalk-webview" spec="^2.3.0" />
variable name="XWALK_VERSION" value="23+" />
variable name="XWALK_LITEVERSION" value="xwalk_core_library_canary:17+" />
variable name="XWALK_COMMANDLINE" value="--disable-pull-to-refresh-effect" />
variable name="XWALK_MODE" value="embedded" />
variable name="XWALK_MULTIPLEAPK" value="true" />
</plugin>
<plugin name="cordova-plugin-android-permissions" spec="^1.0.0" />
<plugin name="cordova-plugin-file" spec="^5.0.0" />
<plugin name="com.hutchind.cordova.plugins.streamingmedia" spec="~0.1.4" />
<plugin name="phonegap-plugin-push" spec="^2.1.2" />
<variable name="SENDER_ID" value="xxxxxxxxx" />
<variable name="FCM_VERSION" value="11.0.1" />
</plugin>
<plugin name="cordova-plugin-spinnerdialog" spec="^1.3.2" />
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
<plugin name="cordova-plugin-x-socialsharing" spec="^5.3.1" />
<plugin name="cordova-plugin-facebook4" spec="^1.9.1"> />
< variable name="APP_ID" value="xxxxxxxxxxxxx" />
< variable name="APP_NAME" value="xxxxxxxx" />
</plugin>
You’re not even using my plugin. You’re using the mauron85 version. I saw you cross-post there already.
@christocracy
what is the solution of this issue :
ERROR: In
please help
I have no idea. You’re not using this plugin. Go seek help from the author of the plugin you’re using.
@christocracy
Thanks for reply :)
@christocracy I am having this same issue too
:processDebugResources
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex
Here are my plugins:
<engine name="ios" spec="~4.5.4" />
<engine name="android" spec="~6.3.0" />
<plugin name="cordova-plugin-nativestorage" spec="^2.3.1" />
<plugin name="cordova-plugin-console" spec="^1.1.0" />
<plugin name="cordova-plugin-device" spec="^1.1.7" />
<plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
<plugin name="cordova-plugin-file-transfer" spec="^1.7.1" />
<plugin name="cordova-plugin-inappbrowser" spec="^1.7.2" />
<plugin name="cordova-plugin-camera" spec="^2.4.1">
<variable name="CAMERA_USAGE_DESCRIPTION" value=" " />
<variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value=" " />
</plugin>
<plugin name="cordova-plugin-statusbar" spec="^2.4.1" />
<plugin name="cordova-plugin-splashscreen" spec="^4.1.0" />
<plugin name="uk.co.workingedge.phonegap.plugin.launchnavigator" spec="^4.1.5">
<variable name="LOCATION_USAGE_DESCRIPTION" value="This app requires access to your location for navigation purposes" />
</plugin>
<plugin name="de.appplant.cordova.plugin.local-notification" spec="^0.8.5" />
<plugin name="cordova-plugin-app-event" spec="^1.2.1" />
<plugin name="cordova-plugin-network-information" spec="^1.3.4" />
<plugin name="cordova-sqlite-storage" spec="^2.2.1" />
<plugin name="com.googlemaps.ios" spec="https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk" />
<plugin name="cordova-plugin-advanced-http" spec="^1.11.0" />
<plugin name="cordova-plugin-ionic-keyboard" spec="git+https://github.com/ionic-team/cordova-plugin-keyboard.git" />
<plugin name="cordova-plugin-ionic-webview" spec="^1.1.16" />
<plugin name="cordova-plugin-geolocation" spec="git+https://github.com/svarughese91/cordova-plugin-geolocation.git" />
<plugin name="cordova-sms-plugin" spec="^0.1.11" />
<plugin name="cordova-background-geolocation-lt" spec="^2.10.1">
<variable name="LICENSE" value="YOUR_LICENSE_KEY" />
<variable name="GOOGLE_API_VERSION" value="11.8.0" />
<variable name="APPCOMPAT_VERSION" value="27.0.0" />
<variable name="BACKGROUND_MODE_LOCATION" value="<string>location</string>" />
<variable name="LOCATION_ALWAYS_AND_WHEN_IN_USE_USAGE_DESCRIPTION" value="Always use is required for constant background location-tracking" />
<variable name="LOCATION_ALWAYS_USAGE_DESCRIPTION" value="Background location-tracking is required" />
<variable name="LOCATION_WHEN_IN_USE_USAGE_DESCRIPTION" value="Background location-tracking is required" />
<variable name="MOTION_USAGE_DESCRIPTION" value="Using the accelerometer increases battery-efficiency by intelligently toggling location-tracking only when the device is detected to be moving" />
</plugin>
@svarughese91 You have a conflict including multiple versions of an android support lib. Post your platforms/android/project.properties
@christocracy Thanks so much for such a quick response, I really appreciate that!
#
#
#
target=android-26 android.library.reference.1=CordovaLib cordova.gradle.include.1=cordova-plugin-background-fetch/partner-build.gradle cordova.system.library.1=com.google.android.gms:play-services-location:11.8.0 cordova.system.library.2=com.android.support:appcompat-v7:27.0.0 cordova.gradle.include.2=cordova-background-geolocation-lt/partner-build.gradle cordova.system.library.3=com.android.support:support-v4:24.1.1+ cordova.system.library.5=com.android.support:support-v4:+ cordova.system.library.6=com.squareup.okhttp3:okhttp:3+
Notice how many different versions of com.android.support
your app is including. These must all be aligned to the same version.
My plugin provides the config param APPCOMPAT_VERSION allowing you to tell the plugin which version to use.
@christocracy so should i update: cordova.system.library.2=com.android.support:appcompat-v7:27.0.0 cordova.system.library.3=com.android.support:support-v4:24.1.1+ cordova.system.library.5=com.android.support:support-v4:+
all to say v6:+
Here is android platform version: android 6.3.0
edit all your com.android.support
dependencies to require version 27.0.0
@christocracy that worked! thank you!!
Install this plugin to fix this issue.
ionic cordova plugin add cordova-android-support-gradle-release --save
https://github.com/dpa99c/cordova-android-support-gradle-release
This seams similar to #563
Your Environment
cordova -v
): 7.0.1cordova platform ls
): 6.2.3Expected Behavior
Build
Actual Behavior
Crash
Steps to Reproduce
https://github.com/dagatsoin/background-geolocation-repro00
Context
I am trying to run the plugin within a meteor 1.5.2 app with this Android SDK config:
Note that I haven't set any variable, all plugins variable should have default value. Also I can't change the SDK Tools version by now. I have to stick to 23.
Debug logs
Build log:
Logcat -> logcat20180207.txt