transistorsoft / cordova-background-geolocation-lt

The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.
http://www.transistorsoft.com/shop/products/cordova-background-geolocation
Other
659 stars 276 forks source link

ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font #602

Closed dagatsoin closed 6 years ago

dagatsoin commented 6 years ago

This seams similar to #563

Your Environment

Expected Behavior

Build

Actual Behavior

Crash

Steps to Reproduce

https://github.com/dagatsoin/background-geolocation-repro00

  1. curl https://install.meteor.com/ | sh
  2. meteor run-android-device

Context

I am trying to run the plugin within a meteor 1.5.2 app with this Android SDK config:

sdk_set_up

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:

[[[[[ ~/dev/repro-bg-geo ]]]]]                

=> Started proxy.                             

Changes to your project's package version selections:

crosswalk  removed from your project          

=> Meteor 1.6.1 is available. Update this project with 'meteor update'.
WARNING: Attempting to install plugin cordova-plugin-statusbar@2.2.1, but it should have a minimum version of 2.2.3 to ensure compatibility with the current platform
         versions. Installing the minimum version for convenience, but you should adjust your dependencies.
WARNING: Attempting to install plugin cordova-plugin-splashscreen@4.0.1, but it should have a minimum version of 4.0.3 to ensure compatibility with the current platform
         versions. Installing the minimum version for convenience, but you should adjust your dependencies.
Subproject Path: CordovaLibns                |
=> Started MongoDB.                                                                
ANDROID_HOME=/Users/XXX/Library/Android/sdk                           ] 0% 0.0s
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home
Subproject Path: CordovaLib
>> CoThe 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_eauak29qt8wbq7aq4hk7eo1jm.run(/Users/XXX/dev/repro-bg-geo/.meteor/local/cordova-build/platforms/android/build.gradle:137)
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.
:clean
:CordovaLib:clean

BUILD SUCCESSFUL

Total time: 2.59 secs
Subproject Path: CordovaLibns                [=======                   ] 28% 24.5s
Subproject Path: CordovaLibns                [===================        ] 71% 4.9s
Subproject Path: CordovaLibns                [=======================    ] 85% 2.2s

WARNING: You are testing your app on a remote device. For the mobile app to be able to connect to the local server, make sure your device is on the same network, and that
         the network configuration allows clients to talk to each other (no client isolation).
W20180207-16:45:10.646(1)? (STDERR) Note: you are using a pure-JavaScript implementation of bcrypt.
W20180207-16:45:10.773(1)? (STDERR) While this implementation will work correctly, it is known to be
W20180207-16:45:10.777(1)? (STDERR) approximately three times slower than the native implementation.
W20180207-16:45:10.782(1)? (STDERR) In order to use the native implementation instead, run
W20180207-16:45:10.785(1)? (STDERR)           
W20180207-16:45:10.788(1)? (STDERR)   meteor npm install --save bcrypt
W20180207-16:45:10.792(1)? (STDERR)           
W20180207-16:45:10.795(1)? (STDERR) in the root directory of your application.
=> Started your app.                          

=> App running at: http://localhost:3000/     
=> Errors executing Cordova commands:         

   While running Cordova app for platform Android with options --device:
   Error: Command failed: /Users/XXX/dev/repro-bg-geo/.meteor/local/cordova-build/platforms/android/cordova/run --device
   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 <declare-styleable> FontFamilyFont, unable to find attribute android:font
   ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontStyle
   ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontWeight

   FAILURE: Build failed with an exception.

   * What went wrong:
   Execution failed for task ':processArmv7DebugResources'.
   > com.android.ide.common.process.ProcessException: Failed to execute aapt

   * Try:
   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
   { [Error: /Users/XXX/dev/repro-bg-geo/.meteor/local/cordova-build/platforms/android/gradlew: 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 <declare-styleable> FontFamilyFont, unable to find attribute android:font
   ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontStyle
   ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontWeight

   FAILURE: Build failed with an exception.

   * What went wrong:
   Execution failed for task ':processArmv7DebugResources'.
   > com.android.ide.common.process.ProcessException: Failed to execute aapt

   * Try:
   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.]
   stderr: 'Note: Some input files use or override a deprecated API.\nNote: Recompile with -Xlint:deprecation for details.\nNote: Some input files use or override a
   deprecated API.\nNote: Recompile with -Xlint:deprecation for details.\nERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font\nERROR: In
   <declare-styleable> FontFamilyFont, unable to find attribute android:fontStyle\nERROR: In <declare-styleable> FontFamilyFont, unable to find attribute
   android:fontWeight\n\n\nFAILURE: Build failed with an exception.\n\n* What went wrong:\nExecution failed for task \':processArmv7DebugResources\'.\n>
   com.android.ide.common.process.ProcessException: Failed to execute aapt\n\n* Try:\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option
   to get more log output.\n',
   stdout: 'null\nThe Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.\n\tat
   build_eauak29qt8wbq7aq4hk7eo1jm.run(/Users/XXX/dev/repro-bg-geo/.meteor/local/cordova-build/platforms/android/build.gradle:140)\norg.xwalk:xwalk_core_library:23+\nThe
   JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.\nIncremental java compilation is an incubating feature.\nThe
   TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty()
   instead.\n:cdvCreateAssetManifest\n:preBuild\n:preArmv7DebugBuild\n:checkArmv7DebugManifest\n:preArmv7ReleaseBuild\n:preX86DebugBuild\n:preX86ReleaseBuild\n:CordovaLib:preBuild
   UP-TO-DATE\n:CordovaLib:preDebugBuild
   UP-TO-DATE\n:CordovaLib:checkDebugManifest\n:CordovaLib:prepareDebugDependencies\n:CordovaLib:compileDebugAidl\n:CordovaLib:compileDebugNdk
   UP-TO-DATE\n:CordovaLib:compileLint\n:CordovaLib:copyDebugLint
   UP-TO-DATE\n:CordovaLib:mergeDebugShaders\n:CordovaLib:compileDebugShaders\n:CordovaLib:generateDebugAssets\n:CordovaLib:mergeDebugAssets\n:CordovaLib:mergeDebugProguardFiles
   UP-TO-DATE\n:CordovaLib:packageDebugRenderscript
   UP-TO-DATE\n:CordovaLib:compileDebugRenderscript\n:CordovaLib:generateDebugResValues\n:CordovaLib:generateDebugResources\n:CordovaLib:packageDebugResources\n:CordovaLib:processDebugManifest\n:CordovaLib:generateDebugBuildConfig\n:CordovaLib:processDebugResources\n:CordovaLib:generateDebugSources\n:CordovaLib:incrementalDebugJavaCompilationSafeguard\n:CordovaLib:compileDebugJavaWithJavac\n:CordovaLib:compileDebugJavaWithJavac
   - is not incremental (e.g. outputs have changed, no previous execution, etc.).\n:CordovaLib:processDebugJavaRes
   UP-TO-DATE\n:CordovaLib:transformResourcesWithMergeJavaResForDebug\n:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug\n:CordovaLib:mergeDebugJniLibFolders\n:CordovaLib:transformNative_libsWithMergeJniLibsForDebug\n:CordovaLib:transformNative_libsWithSyncJniLibsForDebug\n:CordovaLib:bundleDebug\n:CordovaLib:preReleaseBuild
   UP-TO-DATE\n:CordovaLib:checkReleaseManifest\n:CordovaLib:prepareReleaseDependencies\n:CordovaLib:compileReleaseAidl\n:CordovaLib:compileReleaseNdk
   UP-TO-DATE\n:CordovaLib:copyReleaseLint
   UP-TO-DATE\n:CordovaLib:mergeReleaseShaders\n:CordovaLib:compileReleaseShaders\n:CordovaLib:generateReleaseAssets\n:CordovaLib:mergeReleaseAssets\n:CordovaLib:mergeReleaseProguardFiles\n:CordovaLib:packageReleaseRenderscript
   UP-TO-DATE\n:CordovaLib:compileReleaseRenderscript\n:CordovaLib:generateReleaseResValues\n:CordovaLib:generateReleaseResources\n:CordovaLib:packageReleaseResources\n:CordovaLib:processReleaseManifest\n:CordovaLib:generateReleaseBuildConfig\n:CordovaLib:processReleaseResources\n:CordovaLib:generateReleaseSources\n:CordovaLib:incrementalReleaseJavaCompilationSafeguard\n:CordovaLib:compileReleaseJavaWithJavac\n:CordovaLib:compileReleaseJavaWithJavac
   - is not incremental (e.g. outputs have changed, no previous execution, etc.).\n:CordovaLib:processReleaseJavaRes
   UP-TO-DATE\n:CordovaLib:transformResourcesWithMergeJavaResForRelease\n:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease\n:CordovaLib:mergeReleaseJniLibFolders\n:CordovaLib:transformNative_libsWithMergeJniLibsForRelease\n:CordovaLib:transformNative_libsWithSyncJniLibsForRelease\n:CordovaLib:bundleRelease\n:prepareAndroidArchLifecycleRuntime103Library\n:prepareComAndroidSupportSupportCompat2702Library\n:prepareComAndroidSupportSupportCoreUi2702Library\n:prepareComAndroidSupportSupportCoreUtils2702Library\n:prepareComAndroidSupportSupportFragment2702Library\n:prepareComAndroidSupportSupportMediaCompat2702Library\n:prepareComAndroidSupportSupportV42702Library\n:prepareComGoogleAndroidGmsPlayServicesBase1180Library\n:prepareComGoogleAndroidGmsPlayServicesBaseLicense1180Library\n:prepareComGoogleAndroidGmsPlayServicesBasement1180Library\n:prepareComGoogleAndroidGmsPlayServicesBasementLicense1180Library\n:prepareComGoogleAndroidGmsPlayServicesLocation1180Library\n:prepareComGoogleAndroidGmsPlayServicesLocationLicense1180Library\n:prepareComGoogleAndroidGmsPlayServicesTasks1180Library\n:prepareComGoogleAndroidGmsPlayServicesTasksLicense1180Library\n:prepareOrgApacheCordovaCordovaLib623DebugLibrary\n:prepareOrgXwalkXwalk_core_library23535894Library\n:prepareTslocationmanagerLibrary\n:prepareArmv7DebugDependencies\n:compileArmv7DebugAidl\n:compileArmv7DebugRenderscript\n:generateArmv7DebugBuildConfig\n:mergeArmv7DebugShaders\n:compileArmv7DebugShaders\n:generateArmv7DebugAssets\n:mergeArmv7DebugAssets\n:createXwalkCommandLineFileArmv7Debug\n:generateArmv7DebugResValues\n:generateArmv7DebugResources\n:mergeArmv7DebugResources\n:processArmv7DebugManifest\n:processArmv7DebugResources
   FAILED\n\nBUILD FAILED\n\nTotal time: 10.704 secs\n',
   code: 1 } 'Error: /Users/XXX/dev/repro-bg-geo/.meteor/local/cordova-build/platforms/android/gradlew: Command failed with exit code 1 Error output:\nNote: Some input
   files use or override a deprecated API.\nNote: Recompile with -Xlint:deprecation for details.\nNote: Some input files use or override a deprecated API.\nNote: Recompile
   with -Xlint:deprecation for details.\nERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font\nERROR: In <declare-styleable> FontFamilyFont,
   unable to find attribute android:fontStyle\nERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontWeight\n\n\nFAILURE: Build failed with an
   exception.\n\n* What went wrong:\nExecution failed for task \':processArmv7DebugResources\'.\n> com.android.ide.common.process.ProcessException: Failed to execute
   aapt\n\n* Try:\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\n    at ChildProcess.whenDone
   (/Users/XXX/dev/repro-bg-geo/.meteor/local/cordova-build/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)\n    at emitTwo
   (events.js:87:13)\n    at ChildProcess.emit (events.js:172:7)\n    at maybeClose (internal/child_process.js:862:16)\n    at Process.ChildProcess._handle.onexit
   (internal/child_process.js:222:5)'
   at ChildProcess.exitCallback (/tools/utils/processes.js:151:23)
   at emitTwo (events.js:87:13)
   at ChildProcess.emit (events.js:172:7)
   at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12)
   => awaited here:
   at Function.Promise.await
   (/Users/XXX/.meteor/packages/meteor-tool/.1.5.4_1.120djf4.fgbm++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:56:12)
   at CordovaProject.runCommands (/tools/cordova/project.js:715:22)
   at CordovaProject.run$ (/tools/cordova/project.js:261:10)
   at tryCatch
   (/Users/XXX/.meteor/packages/meteor-tool/.1.5.4_1.120djf4.fgbm++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:63:40)
   at GeneratorFunctionPrototype.invoke [as _invoke]
   (/Users/XXX/.meteor/packages/meteor-tool/.1.5.4_1.120djf4.fgbm++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:337:22)
   at GeneratorFunctionPrototype.prototype.(anonymous function) [as next]
   (/Users/XXX/.meteor/packages/meteor-tool/.1.5.4_1.120djf4.fgbm++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:96:21)
   at tryCatch
   (/Users/XXX/.meteor/packages/meteor-tool/.1.5.4_1.120djf4.fgbm++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:63:40)
   at invoke
   (/Users/XXX/.meteor/packages/meteor-tool/.1.5.4_1.120djf4.fgbm++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:139:20)
   at
   /Users/XXX/.meteor/packages/meteor-tool/.1.5.4_1.120djf4.fgbm++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:184:11
   at callInvokeWithMethodAndArg
   (/Users/XXX/.meteor/packages/meteor-tool/.1.5.4_1.120djf4.fgbm++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:183:16)
   at AsyncIterator.enqueue
   (/Users/XXX/.meteor/packages/meteor-tool/.1.5.4_1.120djf4.fgbm++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:206:13)
   at AsyncIterator.prototype.(anonymous function) [as next]
   (/Users/XXX/.meteor/packages/meteor-tool/.1.5.4_1.120djf4.fgbm++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:96:21)
   at Object.runtime.async
   (/Users/XXX/.meteor/packages/meteor-tool/.1.5.4_1.120djf4.fgbm++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/regenerator-runtime/runtime.js:226:14)
   at
   /Users/XXX/.meteor/packages/meteor-tool/.1.5.4_1.120djf4.fgbm++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/fiber_pool.js:43:39

/Users/XXX/.meteor/packages/meteor-tool/.1.5.4_1.120djf4.fgbm++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:218
      throw error;
      ^
undefined
 => awaited here:
    at Function.Promise.await (/Users/XXX/.meteor/packages/meteor-tool/.1.5.4_1.120djf4.fgbm++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:56:12)
    at /tools/cordova/runner.js:98:17
    at /tools/utils/buildmessage.js:271:13
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:264:29
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:262:18
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:253:23
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
    at Object.capture (/tools/utils/buildmessage.js:252:19)
    at CordovaRunner.startRunTargets (/tools/cordova/runner.js:97:37)
    at [object Object]._.extend._runOnce (/tools/runners/run-app.js:772:21)
    at [object Object]._.extend._fiber (/tools/runners/run-app.js:885:28)
    at /tools/runners/run-app.js:412:12

Logcat -> logcat20180207.txt

christocracy commented 6 years ago

You have an issue with android app-compat dependency version. Paste your platforms/android/project.properties

dagatsoin commented 6 years ago
# 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
christocracy commented 6 years ago

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
dagatsoin commented 6 years ago

Indeed it is the the 2.8.5. I think I edited my original post after you answer.

dagatsoin commented 6 years ago

Do you need additional info?

christocracy commented 6 years ago

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

dagatsoin commented 6 years ago

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

rafiqvns commented 6 years ago

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 FontFamilyFont, unable to find attribute android:fontVariationSettings ERROR: In FontFamilyFont, unable to find attribute android:ttcIndex FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':processArmv7DebugResources'. > com.android.ide.common.process.ProcessException: Failed to execute aapt Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.


Project target.

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.+

christocracy commented 6 years ago

@rafiqvns $ cordova plugins

rafiqvns commented 6 years ago

@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>
christocracy commented 6 years ago

You’re not even using my plugin. You’re using the mauron85 version. I saw you cross-post there already.

rafiqvns commented 6 years ago

@christocracy

what is the solution of this issue :

ERROR: In FontFamilyFont, unable to find attribute android:fontVariationSettings ERROR: In FontFamilyFont, unable to find attribute android:ttcIndex

please help

christocracy commented 6 years ago

I have no idea. You’re not using this plugin. Go seek help from the author of the plugin you’re using.

rafiqvns commented 6 years ago

@christocracy

Thanks for reply :)

svarughese91 commented 6 years ago

@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="&lt;string&gt;location&lt;/string&gt;" />
        <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>
christocracy commented 6 years ago

@svarughese91 You have a conflict including multiple versions of an android support lib. Post your platforms/android/project.properties

svarughese91 commented 6 years ago

@christocracy Thanks so much for such a quick response, I really appreciate that!

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-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+

christocracy commented 6 years ago

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.

svarughese91 commented 6 years ago

@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

christocracy commented 6 years ago

edit all your com.android.support dependencies to require version 27.0.0

svarughese91 commented 6 years ago

@christocracy that worked! thank you!!

sreekanth-karini commented 6 years ago

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