ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

nativescript-ui-gauge incompatible with android wear #1057

Open farfromrefug opened 5 years ago

farfromrefug commented 5 years ago

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

msn444 commented 3 years ago

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.
farfromrefug commented 3 years ago

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

msn444 commented 3 years ago

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.

farfromrefug commented 3 years ago

yes you are right. glad you found a solution !

deindesignpl commented 3 years ago

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.

farfromrefug commented 3 years ago

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

deindesignpl commented 3 years ago

I see, thank you for information 👍

ipald commented 3 years ago

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?

adel12790 commented 3 years ago

I have the same issue with NS-applozic-plugin

cjohn001 commented 3 years ago

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