nativescript-ui-feedback icon indicating copy to clipboard operation
nativescript-ui-feedback copied to clipboard

nativescript-ui-gauge incompatible with android wear

Open farfromrefug opened this issue 5 years ago • 10 comments

Trying to build an android app using android wear libraries and nativescript-ui-gauge won't compile. It's pretty simple to test. Add nativescript-ui-gauge and nativescript-wear-os to this app (any app should do). Then compile for android. You should end up with errors like this:

Caused by: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
myapp/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:4779: error: duplicate value for resource 'attr/radius' with config ''.
/myapp/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:4779: error: resource previously defined here.

I actually managed to fix the issue by removing the radius attribute defined nativescript-ui-gauge. Not sure why it is happening though

farfromrefug avatar Mar 18 '19 14:03 farfromrefug

I have the same issue when nativescript-ui-gauge is used in an app with @triniwiz/nativescript-stripe. See https://github.com/triniwiz/nativescript-plugins/issues/27

Execution failed for task ':app:mergeDebugResources'.
Android resource compilation failed
C:\Users\Mike\.gradle\caches\transforms-2\files-2.1\0f279d52f241ddc1c70630baab066dcc\jetified-TNSGauge-release\res\values\values.xml:29:5-40:25: AAPT: error: duplicate value for resource 'attr/circleRadius' with config ''.
    
C:\Users\Mike\.gradle\caches\transforms-2\files-2.1\0f279d52f241ddc1c70630baab066dcc\jetified-TNSGauge-release\res\values\values.xml:29:5-40:25: AAPT: error: resource previously defined here.

msn444 avatar Feb 04 '21 21:02 msn444

@msn444 dont use gauge. you can get the same result with @nativescript-community/ui-canvas

farfromrefug avatar Feb 04 '21 22:02 farfromrefug

Thanks @farfromrefug, but wouldn't that require me to code my own gauge using drawing primitives?

I was able to implement my gauge pretty easily using RadPieChart and it's coexisting with the stripe plugin ok now.

msn444 avatar Feb 04 '21 23:02 msn444

yes you are right. glad you found a solution !

farfromrefug avatar Feb 05 '21 07:02 farfromrefug

I'm facing the same issue currently. @farfromrefug you mentioned that you managed to fix the issue by removing the radius attribute defined nativescript-ui-gauge. How did you actually achieve it? Changing values xml under platforms doesn't seem to solve the issue actually.

deindesignpl avatar Mar 18 '21 13:03 deindesignpl

@deindesignpl no i dropped that plugin and do it with @nativescript-community/ui-canvas

farfromrefug avatar Mar 18 '21 13:03 farfromrefug

I see, thank you for information 👍

deindesignpl avatar Mar 18 '21 13:03 deindesignpl

I've the same issue with the ui-material-bottomsheet https://github.com/nativescript-community/ui-material-components/issues/258. There are any updates about it?

ipald avatar Apr 01 '21 12:04 ipald

I have the same issue with NS-applozic-plugin

adel12790 avatar Apr 07 '21 12:04 adel12790

I have the same problem when using the plugin with "@nativescript-community/ui-material-tabs": "^5.2.20",

cjohn001 avatar Apr 13 '21 23:04 cjohn001